Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit e4c8bd2

Browse files
author
Frank Dowsett
committed
AdiumTabStyle: Try to use the unofficial source list background colour for vertical tabs' background.
1 parent b27b0eb commit e4c8bd2

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Source/PSMAdiumTabStyle.m

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -493,16 +493,22 @@ - (void)drawBezelOfTabBarControl:(PSMTabBarControl *)tabBarControl inRect:(NSRec
493493
[NSBezierPath fillRect:rect];
494494
}
495495
break;
496-
497-
case PSMTabBarVerticalOrientation:
498-
//This is the Mail.app source list background color... which differs from the iTunes one.
499-
[[NSColor colorWithCalibratedRed:.9059
500-
green:.9294
501-
blue:.9647
502-
alpha:1.0] set];
496+
497+
case PSMTabBarVerticalOrientation :
498+
{
499+
NSColor *color = [NSColor colorWithCatalogName:@"System" colorName:@"_sourceListBackgroundColor"];
500+
if (!color) {
501+
//This is the Mail.app source list background color... which differs from the iTunes one.
502+
color = [NSColor colorWithCalibratedRed:.9059
503+
green:.9294
504+
blue:.9647
505+
alpha:1.0];
506+
}
507+
[color set];
503508
NSRectFill(rect);
504509
break;
505510
}
511+
}
506512

507513
//Draw the border and shadow around the tab bar itself
508514
[NSGraphicsContext saveGraphicsState];

0 commit comments

Comments
 (0)