Skip to content
Snippets Groups Projects
Commit d97e0a7b authored by George Nachman's avatar George Nachman
Browse files

Give scrollers a light appearance when the window has a dark appearance so they'll be visible.

parent a21fa199
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -79,6 +79,14 @@
}
}
 
- (NSAppearance *)effectiveAppearance {
if ([self.window.appearance.name isEqual:NSAppearanceNameVibrantDark]) {
return [NSAppearance appearanceNamed:NSAppearanceNameVibrantLight];
} else {
return [super effectiveAppearance];
}
}
- (BOOL)isLegacyScroller
{
return [self scrollerStyle] == NSScrollerStyleLegacy;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment