[gnome-themes-standard] dark: tweak button gradients for dark theme
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] dark: tweak button gradients for dark theme
- Date: Mon, 21 Mar 2011 01:51:41 +0000 (UTC)
commit 24aecc91154398a073f092a00bd4ea98fe1d2d65
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Mar 20 21:50:38 2011 -0400
dark: tweak button gradients for dark theme
Make them more consistent with the light theme.
themes/Adwaita/gtk-3.0/gtk-dark.css | 11 ++++++++---
themes/Adwaita/gtk-3.0/gtk-widgets.css | 8 ++++----
themes/Adwaita/gtk-3.0/gtk.css | 7 ++++++-
3 files changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index a66acf6..de0e715 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -11,10 +11,15 @@
@define-color theme_tooltip_bg_color #cbcbcb;
@define-color theme_tooltip_fg_color #000000;
- define-color button_gradient_color_a #0d0b0d;
- define-color button_gradient_color_b #282528;
+ define-color button_gradient_color_a #282528;
+ define-color button_gradient_color_b #0d0b0d;
@define-color button_border #585458;
- define-color button_active_gradient_color #5d565d;
+
+ define-color button_active_gradient_color_a shade (@button_active_gradient_color_b, 0.83);
+ define-color button_active_gradient_color_b #5d565d;
+
+ define-color button_hover_gradient_color_a shade (@button_gradient_color_a, 1.07);
+ define-color button_hover_gradient_color_b @theme_base_color;
@define-color insensitive_bg_color #0b0b0d;
@define-color insensitive_fg_color #585458;
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 53912bd..5f0432e 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -472,8 +472,8 @@ GtkComboBox.button {
border-color: @button_border;
background-image: -gtk-gradient (linear,
left top, left bottom,
- from (@theme_base_color),
- to (shade (@button_gradient_color_a, 0.94)));
+ from (@button_hover_gradient_color_a),
+ to (@button_hover_gradient_color_b));
}
.button:active,
@@ -482,8 +482,8 @@ GtkComboBox.button {
.toolbar.button:hover:active {
background-image: -gtk-gradient (linear,
left top, left bottom,
- from (@button_active_gradient_color),
- to (alpha (shade (@button_active_gradient_color, 0.83), 0.13)));
+ from (@button_active_gradient_color_a),
+ to (alpha (@button_active_gradient_color_b, 0.13)));
border-color: @highlighted_border;
}
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index ba26de5..9f92974 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -50,7 +50,12 @@
@define-color button_gradient_color_a #f4f6f4;
@define-color button_gradient_color_b #d7dad7;
@define-color button_border #a7aba7;
- define-color button_active_gradient_color #a2a9a2;
+
+ define-color button_hover_gradient_color_a @theme_base_color;
+ define-color button_hover_gradient_color_b shade (@button_gradient_color_a, 0.94);
+
+ define-color button_active_gradient_color_a #a2a9a2;
+ define-color button_active_gradient_color_b shade (@button_active_gradient_color_a, 0.83);
@define-color insensitive_bg_color #f4f4f2;
@define-color insensitive_fg_color #a7aba7;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]