Revision: 15103
http://sourceforge.net/p/skim-app/code/15103
Author: hofman
Date: 2025-04-08 16:27:39 +0000 (Tue, 08 Apr 2025)
Log Message:
-----------
use secondary label color for T
Modified Paths:
--------------
trunk/SKFontWell.m
Modified: trunk/SKFontWell.m
===================================================================
--- trunk/SKFontWell.m 2025-04-08 14:29:02 UTC (rev 15102)
+++ trunk/SKFontWell.m 2025-04-08 16:27:39 UTC (rev 15103)
@@ -438,18 +438,13 @@
if ([self hasTextColor]) {
NSRect rect = NSMakeRect(NSMaxX(frame) - 12.0, 2.0, 10.0, 10.0);
- NSAttributedString *T = [[NSAttributedString alloc]
initWithString:@"T" attributes:@{NSForegroundColorAttributeName: [NSColor
labelColor], NSFontAttributeName: [NSFont fontWithName:@"Palatino-Bold"
size:8.0]}];
+ NSAttributedString *T = [[NSAttributedString alloc]
initWithString:@"T" attributes:@{NSForegroundColorAttributeName: [NSColor
secondaryLabelColor], NSFontAttributeName: [NSFont
fontWithName:@"Palatino-Bold" size:8.0]}];
NSSize size = [T size];
[T drawInRect:NSMakeRect(NSMinX(rect) - ceil(size.width) - 2.0,
floor(NSMidY(rect) - 0.5 * size.height), size.width, size.height)];
[NSGraphicsContext saveGraphicsState];
[[self textColor] drawSwatchInRect:rect];
- if (SKHasDarkAppearance()) {
- [[NSColor colorWithGenericGamma22White:1.0 alpha:0.5] setStroke];
- [[NSGraphicsContext currentContext]
setCompositingOperation:NSCompositingOperationScreen];
- } else {
- [[NSColor colorWithGenericGamma22White:0.0 alpha:0.5] setStroke];
- [[NSGraphicsContext currentContext]
setCompositingOperation:NSCompositingOperationMultiply];
- }
+ [[[NSColor textColor] colorWithAlphaComponent:0.5] setStroke];
+ [[NSGraphicsContext currentContext]
setCompositingOperation:SKHasDarkAppearance() ? NSCompositingOperationScreen :
NSCompositingOperationMultiply];
[NSBezierPath strokeRect:NSInsetRect(rect, 0.5, 0.5)];
[NSGraphicsContext restoreGraphicsState];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit