From 08e3de52cf9679509338503c96b19f7db399115a Mon Sep 17 00:00:00 2001 From: Abhi Beckert Date: Fri, 4 Aug 2017 17:10:33 +1000 Subject: #2753 make it more obvious that a colored tab is inactive --- Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Frameworks') diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m index 9fcdd61d..1098fbf9 100644 --- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m +++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m @@ -630,6 +630,9 @@ typedef struct { 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 @@ typedef struct { //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]; } } } -- cgit v1.2.3