Skip to content

Commit 8bb8403

Browse files
cocoaui: draw tab background color using system highlight color (starting with Ventura)
1 parent 000ba8c commit 8bb8403

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/cocoaui/DdbTabStrip/DdbTabStrip.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ - (NSDictionary *)titleAttributesSelected {
160160
}
161161

162162
- (NSColor *)tabBackgroundColor {
163+
if (@available(macOS 13.0, *)) {
164+
return NSColor.selectedTextBackgroundColor;
165+
}
163166
NSString *osxMode = [NSUserDefaults.standardUserDefaults stringForKey:@"AppleInterfaceStyle"];
164167
BOOL isKey = self.window.isKeyWindow;
165168
if ([osxMode isEqualToString:@"Dark"]) {

0 commit comments

Comments
 (0)