summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@shaunmlxlap.localdomain>2009-06-10 14:37:24 -0500
committerShaun McCance <shaunm@shaunmlxlap.localdomain>2009-06-10 14:37:24 -0500
commita457402ea6fe26678c155134886e7491cd3b7d3a (patch)
treeb5a7f72d6445b8ba23af84d96c7553e30dbbebe2
parentacaffb022ca65788a873f5ca6ab73b3a4f54dd34 (diff)
downloadyelp-a457402ea6fe26678c155134886e7491cd3b7d3a.tar.gz
[yelp-settings.c] Adjusted colors: brighter and lighter
-rw-r--r--src/yelp-settings.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/yelp-settings.c b/src/yelp-settings.c
index 920308e2..12137584 100644
--- a/src/yelp-settings.c
+++ b/src/yelp-settings.c
@@ -733,9 +733,9 @@ settings_update (YelpSettingsType type)
style->text[GTK_STATE_NORMAL].green / 65535.0,
style->text[GTK_STATE_NORMAL].blue / 65535.0,
&text_h, &text_l, &text_s);
- rgb_to_hls (style->bg[GTK_STATE_NORMAL].red / 65535.0,
- style->bg[GTK_STATE_NORMAL].green / 65535.0,
- style->bg[GTK_STATE_NORMAL].blue / 65535.0,
+ rgb_to_hls (style->base[GTK_STATE_NORMAL].red / 65535.0,
+ style->base[GTK_STATE_NORMAL].green / 65535.0,
+ style->base[GTK_STATE_NORMAL].blue / 65535.0,
&base_h, &base_l, &base_s);
/* YELP_COLOR_FG */
@@ -784,7 +784,7 @@ settings_update (YelpSettingsType type)
YELP_COLOR_FG_LIGHT);
hls_to_hex (base_h,
- base_l,
+ base_l - ((base_l - text_l) * 0.03),
base_s,
YELP_COLOR_GRAY_BG);
hls_to_hex (base_h,
@@ -793,30 +793,30 @@ settings_update (YelpSettingsType type)
YELP_COLOR_GRAY_BORDER);
hls_to_hex (204,
- base_l,
- 0.6,
+ base_l - ((base_l - text_l) * 0.03),
+ 0.75,
YELP_COLOR_BLUE_BG);
hls_to_hex (204,
base_l - ((base_l - text_l) * 0.25),
- 0.6,
+ 0.75,
YELP_COLOR_BLUE_BORDER);
hls_to_hex (0,
- base_l,
- 0.6,
+ base_l - ((base_l - text_l) * 0.03),
+ 0.75,
YELP_COLOR_RED_BG);
hls_to_hex (0,
base_l - ((base_l - text_l) * 0.25),
- 0.6,
+ 0.75,
YELP_COLOR_RED_BORDER);
hls_to_hex (60,
- base_l,
- 0.6,
+ base_l - ((base_l - text_l) * 0.03),
+ 0.75,
YELP_COLOR_YELLOW_BG);
hls_to_hex (60,
base_l - ((base_l - text_l) * 0.25),
- 0.6,
+ 0.75,
YELP_COLOR_YELLOW_BORDER);
g_object_unref (G_OBJECT (style));