Skip to content
Snippets Groups Projects
Commit 9125a733 authored by George Nachman's avatar George Nachman
Browse files

Make the outline used to indicate the selected tab less ugly when there are colored tabs

parent 1efea8cc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -585,7 +585,7 @@ static CGFloat PerceivedBrightness(CGFloat r, CGFloat g, CGFloat b) {
NSColor *outerColor;
NSColor *innerColor;
const CGFloat alpha = [_tabBar.window isKeyWindow] ? 1 : 0.5;
if (brightness < 0.5) {
if (brightness > 0.5) {
outerColor = [NSColor colorWithWhite:1 alpha:alpha];
innerColor = [NSColor colorWithWhite:0 alpha:alpha];
} else {
Loading
Loading
@@ -603,12 +603,6 @@ static CGFloat PerceivedBrightness(CGFloat r, CGFloat g, CGFloat b) {
path = [NSBezierPath bezierPathWithRect:rect];
[path setLineWidth:1];
[path stroke];
[outerColor set];
rect = NSInsetRect(rect, 1, 1);
path = [NSBezierPath bezierPathWithRect:rect];
[path setLineWidth:1];
[path stroke];
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment