Revision: 29101
          http://sourceforge.net/p/bibdesk/svn/29101
Author:   hofman
Date:     2025-04-06 16:38:39 +0000 (Sun, 06 Apr 2025)
Log Message:
-----------
use performAsCurrentDrawingAppearance: when available

Modified Paths:
--------------
    trunk/bibdesk/BibDocument_DataSource.m

Modified: trunk/bibdesk/BibDocument_DataSource.m
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.m      2025-04-06 16:37:51 UTC (rev 
29100)
+++ trunk/bibdesk/BibDocument_DataSource.m      2025-04-06 16:38:39 UTC (rev 
29101)
@@ -608,7 +608,13 @@
             image = [[NSImage alloc] initWithSize:size];
             
             [image lockFocus];
-            if (@available(macOS 10.14, *)) {
+            if (@available(macOS 11.0, *)) {
+                [[tableView effectiveAppearance] 
performAsCurrentDrawingAppearance:^{
+                    [NSBezierPath drawHighlightInRect:rect radius:4.0 
lineWidth:2.0 color:color];
+                    NSRectClip(NSInsetRect(rect, 3.0, 3.0));
+                    [attrString drawAtPoint:point];
+                }];
+            } else if (@available(macOS 10.14, *)) {
                 NSAppearance *appearance = [NSAppearance currentAppearance];
                 [NSAppearance setCurrentAppearance:[tableView 
effectiveAppearance]];
                 [NSBezierPath drawHighlightInRect:rect radius:4.0 
lineWidth:2.0 color:color];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to