Revision: 15095
http://sourceforge.net/p/skim-app/code/15095
Author: hofman
Date: 2025-04-07 09:35:49 +0000 (Mon, 07 Apr 2025)
Log Message:
-----------
fix layout calculations
Modified Paths:
--------------
trunk/SKFontWell.m
Modified: trunk/SKFontWell.m
===================================================================
--- trunk/SKFontWell.m 2025-04-07 09:29:15 UTC (rev 15094)
+++ trunk/SKFontWell.m 2025-04-07 09:35:49 UTC (rev 15095)
@@ -443,12 +443,10 @@
}
if ([self hasTextColor]) {
- NSRect rect = NSInsetRect(frame, 4.0, 4.0);
- rect = SKSliceRect(rect, NSHeight(rect), NSMaxXEdge);
- rect = NSMakeRect(NSMaxX(frame) - 12.0, 2.0, 10.0, 10.0);
+ 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" size:8.0]}];
NSSize size = [T size];
- [T drawInRect:NSMakeRect(NSMinX(rect) - ceil(size.width) - 2.0,
NSMidY(rect) - floor(0.5 * size.height) - 0.0, size.width, size.height)];
+ [T drawInRect:NSMakeRect(NSMinX(rect) - ceil(size.width) - 2.0,
floor(NSMidY(rect) - 0.5 * size.height) - 0.0, size.width, size.height)];
[NSGraphicsContext saveGraphicsState];
[[self textColor] drawSwatchInRect:rect];
if (SKHasDarkAppearance()) {
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