From b36f8d794caa88d0d6fbefbb6fa062686610b014 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Fri, 15 Mar 2013 19:51:43 -0400 Subject: [PATCH] Fixed: unfocused selection highlight in table upside down. Previously the gradient in an unfocused selection highlight in CPTableViewSelectionHighlightStyleSourceList style was darker at the top and brighter at the bottom, which is the opposite direction of the gradient when focused. This commit makes all of the unfocused highlight colors a strict 5% desaturation of the focused colors. Refs #1839 --- AppKit/CPTableView.j | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 97ccb5d98..4030c6afc 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -101,14 +101,14 @@ var CPTableViewSourceListUnfocusedSelectionColor = @{ CPSourceListGradient: CGGradientCreateWithColorComponents( CGColorSpaceCreateDeviceRGB(), [ - (200.0 / 255), (200.0 / 255), (200.0 / 255), 1.0, - (210.0 / 255), (210.0 / 255), (210.0 / 255), 1.0, + (218.0 / 255), (223.0 / 255), (234.0 / 255), 1.0, + (178.0 / 255), (181.0 / 255), (190.0 / 255), 1.0, ], [0, 1], 2 ), - CPSourceListTopLineColor: [CPColor secondarySelectedControlColor], - CPSourceListBottomLineColor: [CPColor secondarySelectedControlColor], + CPSourceListTopLineColor: [CPColor colorWithCalibratedRed:192.0 / 255.0 green:195.0 / 255.0 blue:205.0 / 255.0 alpha:1.0], + CPSourceListBottomLineColor: [CPColor colorWithCalibratedRed:151.0 / 255.0 green:153.0 / 255.0 blue:160.0 / 255.0 alpha:1.0], }; // TODO: add docs