Skip to content

Commit

Permalink
cocoaui: draw tab background color using system highlight color (star…
Browse files Browse the repository at this point in the history
…ting with Ventura)
  • Loading branch information
Oleksiy-Yakovenko committed Nov 24, 2024
1 parent 000ba8c commit 8bb8403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/cocoaui/DdbTabStrip/DdbTabStrip.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ - (NSDictionary *)titleAttributesSelected {
}

- (NSColor *)tabBackgroundColor {
if (@available(macOS 13.0, *)) {
return NSColor.selectedTextBackgroundColor;
}
NSString *osxMode = [NSUserDefaults.standardUserDefaults stringForKey:@"AppleInterfaceStyle"];
BOOL isKey = self.window.isKeyWindow;
if ([osxMode isEqualToString:@"Dark"]) {
Expand Down

0 comments on commit 8bb8403

Please sign in to comment.