Revision: 28182
          http://sourceforge.net/p/bibdesk/svn/28182
Author:   hofman
Date:     2023-03-10 17:17:38 +0000 (Fri, 10 Mar 2023)
Log Message:
-----------
draw count bubbles without visual effect in emphasized selected rows, so it is 
also white in dark mode

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

Modified: trunk/bibdesk/BDSKGroupBubbleView.m
===================================================================
--- trunk/bibdesk/BDSKGroupBubbleView.m 2023-03-10 16:57:48 UTC (rev 28181)
+++ trunk/bibdesk/BDSKGroupBubbleView.m 2023-03-10 17:17:38 UTC (rev 28182)
@@ -91,10 +91,10 @@
     if ([[NSWorkspace sharedWorkspace] 
accessibilityDisplayShouldIncreaseContrast])
         [bgView setMaterial:[(NSTableRowView *)[[self superview] superview] 
isSelected] ? 7 : 4];
     else if ([[NSWorkspace sharedWorkspace] 
accessibilityDisplayShouldReduceTransparency])
-        [bgView setMaterial:[[self cell] backgroundStyle] == 
NSBackgroundStyleDark ? 7 : 4];
+        [bgView setMaterial:4];
     else
         [bgView setMaterial:7];
-
+    [bgView setHidden:[[self cell] backgroundStyle] == NSBackgroundStyleDark];
 }
 
 - (void)viewDidChangeEffectiveAppearance {
@@ -158,6 +158,8 @@
 
 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
     if (RUNNING_AFTER(10_15)) {
+        if ([self backgroundStyle] == NSBackgroundStyleDark)
+            [super drawInteriorWithFrame:cellFrame inView:controlView];
     } else if (RUNNING_AFTER(10_9) || [self backgroundStyle] == 
NSBackgroundStyleDark || [self backgroundStyle] == NSBackgroundStyleLowered) {
         [super drawInteriorWithFrame:cellFrame inView:controlView];
     } else {

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

Reply via email to