[gnome-themes-standard] raised-buttons: split raised button colors into their own definition
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] raised-buttons: split raised button colors into their own definition
- Date: Fri, 8 Jul 2011 16:45:16 +0000 (UTC)
commit b92742c807079916fc4a11c65287a84d4c5d4f3b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jul 8 12:43:27 2011 -0400
raised-buttons: split raised button colors into their own definition
And add one for the dark theme
themes/Adwaita/gtk-3.0/gtk-dark.css | 6 ++++++
themes/Adwaita/gtk-3.0/gtk-widgets.css | 8 ++++----
themes/Adwaita/gtk-3.0/gtk.css | 10 ++++++++--
3 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 49caf65..03c7b6a 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -25,6 +25,12 @@
@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 button_raised_gradient_color_a #373e37;
+ define-color button_raised_gradient_color_b #1c1e1c;
+
+ define-color button_raised_active_gradient_color_a @button_raised_gradient_color_b;
+ define-color button_raised_active_gradient_color_b @button_raised_gradient_color_a;
+
@define-color insensitive_bg_color alpha(#0b0b0d, 0.0);
@define-color insensitive_fg_color alpha(#717171, 0.50);
@define-color insensitive_border_color alpha(#717171, 0.50);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 5e16da9..ff6d1d1 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -853,8 +853,8 @@ GtkTreeMenu .menuitem * {
background-image: -gtk-gradient (linear,
left top, left bottom,
- from (@button_gradient_color_a),
- to (@button_gradient_color_b));
+ from (@button_raised_gradient_color_a),
+ to (@button_raised_gradient_color_b));
-GtkWidget-focus-line-width: 2;
}
@@ -878,8 +878,8 @@ GtkTreeMenu .menuitem * {
.primary-toolbar.toolbar .raised .button:active {
background-image: -gtk-gradient (linear,
left top, left bottom,
- from (@button_active_gradient_color_a),
- to (alpha (@button_active_gradient_color_b, 0.13)));
+ from (@button_raised_active_gradient_color_a),
+ to (@button_raised_active_gradient_color_b));
background-color: @theme_base_color;
}
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 94b2725..257545e 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -57,11 +57,17 @@
@define-color button_gradient_color_b #d7dad7;
@define-color button_border #a7aba7;
+ 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 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 button_raised_gradient_color_a @button_gradient_color_a;
+ define-color button_raised_gradient_color_b @button_gradient_color_b;
+
+ define-color button_raised_active_gradient_color_a @button_active_gradient_color_a;
+ define-color button_raised_active_gradient_color_b alpha(@button_active_gradient_color_b, 0.13);
@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]