diff options
author | wicknix <39230578+wicknix@users.noreply.github.com> | 2019-04-15 19:04:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 19:04:39 -0500 |
commit | 577ca2cd6040a7b4406331cdafa89778de871c20 (patch) | |
tree | 6a77d9ae3da25d2e22a0ec0cd0524d459c488e37 /widget/cocoa | |
parent | 5a1843c9f9e323627f9c35529e6a8c853d4dbb0d (diff) | |
download | UXP-577ca2cd6040a7b4406331cdafa89778de871c20.tar UXP-577ca2cd6040a7b4406331cdafa89778de871c20.tar.gz UXP-577ca2cd6040a7b4406331cdafa89778de871c20.tar.lz UXP-577ca2cd6040a7b4406331cdafa89778de871c20.tar.xz UXP-577ca2cd6040a7b4406331cdafa89778de871c20.zip |
Bug1408701: Ensure that we continue to show dark scrollbar thumbs on..
..macOS 10.13+ when scrollbars are always displayed. r=mstange
Diffstat (limited to 'widget/cocoa')
-rw-r--r-- | widget/cocoa/nsNativeThemeCocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widget/cocoa/nsNativeThemeCocoa.mm b/widget/cocoa/nsNativeThemeCocoa.mm index 3c8695442..597c25a48 100644 --- a/widget/cocoa/nsNativeThemeCocoa.mm +++ b/widget/cocoa/nsNativeThemeCocoa.mm @@ -2778,7 +2778,8 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext, NSMutableDictionary* options = [NSMutableDictionary dictionaryWithObjectsAndKeys: (isOverlay ? @"kCUIWidgetOverlayScrollBar" : @"scrollbar"), @"widget", (isSmall ? @"small" : @"regular"), @"size", - (isHorizontal ? @"kCUIOrientHorizontal" : @"kCUIOrientVertical"), @"kCUIOrientationKey", + (isOverlay && isOnTopOfDarkBackground ? @"kCUIVariantWhite" : @""), + @"kCUIVariantKey", (isOnTopOfDarkBackground ? @"kCUIVariantWhite" : @""), @"kCUIVariantKey", [NSNumber numberWithBool:YES], @"indiconly", [NSNumber numberWithBool:YES], @"kCUIThumbProportionKey", |