Fix Mojave-style tabs not triggering in fullscreen

This commit is contained in:
Yee Cheng Chin
2018-12-04 04:14:06 -08:00
parent bbad3edf5a
commit 7d8b5890c1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ enum {
oldTabBarStyle = [[view tabBarControl] styleName];
NSString *style =
shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Unified";
shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
[[view tabBarControl] setStyleNamed:style];
// add text view
+2 -2
View File
@@ -1751,12 +1751,12 @@
+ (NSString *)tabBarStyleForUnified
{
return shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Unified";
return shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
}
+ (NSString *)tabBarStyleForMetal
{
return shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Metal";
return shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Metal";
}
@end // MMWindowController (Private)