Skip to content

Commit e59f679

Browse files
authored
Merge pull request #2847 from abhibeckert/master
#2753 make it more obvious that a colored tab is inactive
2 parents b920062 + 08e3de5 commit e59f679

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,9 @@ - (NSColor *)fillColorForCell:(PSMTabBarCell *)cell
630630
if([cell backgroundColor]) {
631631
//should be a slightly darker variant of the color
632632
fillColor = [[cell backgroundColor] shadowWithLevel:0.15];
633+
634+
// also desaturate the color
635+
fillColor = [NSColor colorWithCalibratedHue:fillColor.hueComponent saturation:fillColor.saturationComponent * 0.4 brightness:fillColor.brightnessComponent alpha:1.0f];
633636
}
634637
}
635638
} else {
@@ -651,7 +654,7 @@ - (NSColor *)fillColorForCell:(PSMTabBarCell *)cell
651654
//make it dark first, then desaturate
652655
if (cell.backgroundColor) {
653656
NSColor *dark = [[cell backgroundColor] shadowWithLevel:0.15];
654-
fillColor = [NSColor colorWithCalibratedHue:dark.hueComponent saturation:dark.saturationComponent brightness:(dark.brightnessComponent * 1.28) alpha:1.0f];
657+
fillColor = [NSColor colorWithCalibratedHue:dark.hueComponent saturation:dark.saturationComponent * 0.15 brightness:(dark.brightnessComponent * 1.28) alpha:1.0f];
655658
}
656659
}
657660
}

0 commit comments

Comments
 (0)