aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/Styles
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2017-08-04 17:10:33 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2017-08-04 17:10:33 +1000
commit08e3de52cf9679509338503c96b19f7db399115a (patch)
tree1031978d47e598cf9015a4dfae29ebe1df0061cc /Frameworks/PSMTabBar/Styles
parent765c8956a13d45c7ab70105f39ccdbfa94e7b9c8 (diff)
downloadsequelpro-08e3de52cf9679509338503c96b19f7db399115a.tar.gz
sequelpro-08e3de52cf9679509338503c96b19f7db399115a.tar.bz2
sequelpro-08e3de52cf9679509338503c96b19f7db399115a.zip
#2753 make it more obvious that a colored tab is inactive
Diffstat (limited to 'Frameworks/PSMTabBar/Styles')
-rw-r--r--Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m5
1 files changed, 4 insertions, 1 deletions
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];
}
}
}