Permalink
Browse files

#2753 make it more obvious that a colored tab is inactive

  • Loading branch information...
abhibeckert committed Aug 4, 2017
1 parent 765c895 commit 08e3de52cf9679509338503c96b19f7db399115a
Showing with 4 additions and 1 deletion.
  1. +4 −1 Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
@@ -630,6 +630,9 @@ - (NSColor *)fillColorForCell:(PSMTabBarCell *)cell
if([cell backgroundColor]) {
//should be a slightly darker variant of the color
fillColor = [[cell backgroundColor] shadowWithLevel:0.15];
// also desaturate the color
fillColor = [NSColor colorWithCalibratedHue:fillColor.hueComponent saturation:fillColor.saturationComponent * 0.4 brightness:fillColor.brightnessComponent alpha:1.0f];
}
}
} else {
@@ -651,7 +654,7 @@ - (NSColor *)fillColorForCell:(PSMTabBarCell *)cell
//make it dark first, then desaturate
if (cell.backgroundColor) {
NSColor *dark = [[cell backgroundColor] shadowWithLevel:0.15];
fillColor = [NSColor colorWithCalibratedHue:dark.hueComponent saturation:dark.saturationComponent brightness:(dark.brightnessComponent * 1.28) alpha:1.0f];
fillColor = [NSColor colorWithCalibratedHue:dark.hueComponent saturation:dark.saturationComponent * 0.15 brightness:(dark.brightnessComponent * 1.28) alpha:1.0f];
}
}
}

0 comments on commit 08e3de5

Please sign in to comment.