summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorwicknix <39230578+wicknix@users.noreply.github.com>2019-04-15 19:04:39 -0500
committerGitHub <noreply@github.com>2019-04-15 19:04:39 -0500
commit577ca2cd6040a7b4406331cdafa89778de871c20 (patch)
tree6a77d9ae3da25d2e22a0ec0cd0524d459c488e37 /widget
parent5a1843c9f9e323627f9c35529e6a8c853d4dbb0d (diff)
downloadUXP-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')
-rw-r--r--widget/cocoa/nsNativeThemeCocoa.mm3
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",