Permalink
Browse files

Merge pull request #2847 from abhibeckert/master

#2753 make it more obvious that a colored tab is inactive
  • Loading branch information...
abhibeckert committed Aug 4, 2017
2 parents b920062 + 08e3de5 commit e59f679f6c6d86269e526ac3645ac27e2e9a1672
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 e59f679

Please sign in to comment.