[gtk-theme-engine-clearlooks] Use the right border color for default buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] Use the right border color for default buttons
- Date: Mon, 8 Nov 2010 15:40:09 +0000 (UTC)
commit a5170eb9a3f6616e913c11b5af756b9f28ab4c60
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 8 10:38:37 2010 -0500
Use the right border color for default buttons
We were deriving the border color from bg_color before choosing
a different bg_color for default buttons. Switch that around.
src/clearlooks_draw_gnome3.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/clearlooks_draw_gnome3.c b/src/clearlooks_draw_gnome3.c
index 8e62c4a..4d818bb 100644
--- a/src/clearlooks_draw_gnome3.c
+++ b/src/clearlooks_draw_gnome3.c
@@ -134,10 +134,6 @@ clearlooks_gnome3_draw_button (cairo_t *cr,
CairoColor border_color;
cairo_pattern_t *pattern;
- ge_mix_color (&bg_color, &fg_color, 0.6, &border_color);
-
- cairo_save (cr);
-
if (params->is_default && !params->disabled) {
if (params->state_type == GTK_STATE_PRELIGHT)
ge_shade_color (&colors->bg[GTK_STATE_SELECTED], 1.06, &bg_color);
@@ -145,6 +141,10 @@ clearlooks_gnome3_draw_button (cairo_t *cr,
bg_color = colors->bg[GTK_STATE_SELECTED];
}
+ ge_mix_color (&bg_color, &fg_color, 0.6, &border_color);
+
+ cairo_save (cr);
+
if (params->disabled) {
stroke_top_color = stroke_bottom_color = bg_color;
fill_top_color = fill_bottom_color = bg_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]