Revision: 27839
http://sourceforge.net/p/bibdesk/svn/27839
Author: hofman
Date: 2022-08-24 23:11:06 +0000 (Wed, 24 Aug 2022)
Log Message:
-----------
different edge colors forhigh contrast
Modified Paths:
--------------
trunk/bibdesk/BDSKZoomablePDFView.m
Modified: trunk/bibdesk/BDSKZoomablePDFView.m
===================================================================
--- trunk/bibdesk/BDSKZoomablePDFView.m 2022-08-24 17:14:01 UTC (rev 27838)
+++ trunk/bibdesk/BDSKZoomablePDFView.m 2022-08-24 23:11:06 UTC (rev 27839)
@@ -485,11 +485,12 @@
rect = [self bounds];
[NSGraphicsContext saveGraphicsState];
if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy) {
+ BOOL isHighContrast = BDSKHasHighContrastAppearance(nil);
[[NSColor colorWithGenericGamma22White:isDark ? 0.262 : 0.981
alpha:1.0] setFill];
[NSBezierPath fillRect:rect];
- [[NSColor colorWithGenericGamma22White:isDark ? 0.499 : 0.905
alpha:1.0] setFill];
+ [[NSColor colorWithGenericGamma22White:isHighContrast ? (isDark ?
0.686 : 0.785) : (isDark ? 0.499 : 0.905) alpha:1.0] setFill];
[NSBezierPath fillRect:BDSKSliceRect(rect, 1.0, NSMaxYEdge)];
- [[NSColor colorWithGenericGamma22White:isDark ? 0.445 : 0.928
alpha:1.0] setFill];
+ [[NSColor colorWithGenericGamma22White:isHighContrast ? (isDark ?
0.686 : 0.785) : (isDark ? 0.445 : 0.928) alpha:1.0] setFill];
[NSBezierPath fillRect:BDSKSliceRect(rect, 1.0, NSMinYEdge)];
} else {
[[NSColor colorWithGenericGamma22White:isDark ? 0.118 : 1.0 alpha:1.0]
setFill];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit