diff options
author | wicknix <39230578+wicknix@users.noreply.github.com> | 2019-05-15 00:37:09 -0500 |
---|---|---|
committer | New Tobin Paradigm <email@mattatobin.com> | 2019-05-15 01:37:09 -0400 |
commit | 06f7a03ffdf2fd761e06803da8382d567348c1f2 (patch) | |
tree | ffa6734c4844eafd2f1c2588397e22d13485229f /widget/cocoa | |
parent | 1595ee7da4559e4619127e2893cce04aad976ac8 (diff) | |
download | UXP-06f7a03ffdf2fd761e06803da8382d567348c1f2.tar UXP-06f7a03ffdf2fd761e06803da8382d567348c1f2.tar.gz UXP-06f7a03ffdf2fd761e06803da8382d567348c1f2.tar.lz UXP-06f7a03ffdf2fd761e06803da8382d567348c1f2.tar.xz UXP-06f7a03ffdf2fd761e06803da8382d567348c1f2.zip |
Fix scroll bar orientation on MacOS
Diffstat (limited to 'widget/cocoa')
-rw-r--r-- | widget/cocoa/nsNativeThemeCocoa.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widget/cocoa/nsNativeThemeCocoa.mm b/widget/cocoa/nsNativeThemeCocoa.mm index 597c25a48..fc4f7f2e9 100644 --- a/widget/cocoa/nsNativeThemeCocoa.mm +++ b/widget/cocoa/nsNativeThemeCocoa.mm @@ -2778,9 +2778,8 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext, NSMutableDictionary* options = [NSMutableDictionary dictionaryWithObjectsAndKeys: (isOverlay ? @"kCUIWidgetOverlayScrollBar" : @"scrollbar"), @"widget", (isSmall ? @"small" : @"regular"), @"size", - (isOverlay && isOnTopOfDarkBackground ? @"kCUIVariantWhite" : @""), - @"kCUIVariantKey", - (isOnTopOfDarkBackground ? @"kCUIVariantWhite" : @""), @"kCUIVariantKey", + (isHorizontal ? @"kCUIOrientHorizontal" : @"kCUIOrientVertical"), @"kCUIOrientationKey", + (isOverlay && isOnTopOfDarkBackground ? @"kCUIVariantWhite" : @""), @"kCUIVariantKey", [NSNumber numberWithBool:YES], @"indiconly", [NSNumber numberWithBool:YES], @"kCUIThumbProportionKey", [NSNumber numberWithBool:YES], @"is.flipped", |