[gnome-themes-standard] Widget theme: add the glowy effect to the pushed spinbutton buttons.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: add the glowy effect to the pushed spinbutton buttons.
- Date: Thu, 1 Dec 2011 02:32:52 +0000 (UTC)
commit 7852ba7652ddc142d5e51479c42ff96850f181f1
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Wed Nov 30 20:47:35 2011 +0100
Widget theme: add the glowy effect to the pushed spinbutton buttons.
.../Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css | 12 ++++++++++++
themes/Adwaita/gtk-3.0/gtk-widgets.css | 13 +++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
index cdfaaa8..f84f321 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
@@ -2,6 +2,18 @@
box-shadow: 2 2 inset alpha(lighter(@theme_selected_bg_color), 0.2), -2 -2 inset alpha(lighter(@theme_selected_bg_color), 0.2), 1 1 inset alpha(lighter(@theme_selected_bg_color), 0.7), -1 -1 inset alpha(lighter(@theme_selected_bg_color), 0.7);
}
+.spinbutton .button:active {
+ box-shadow: 0 2 inset alpha(lighter(@theme_selected_bg_color), 0.2), 0 -2 inset alpha(lighter(@theme_selected_bg_color), 0.2), 0 1 inset alpha(lighter(@theme_selected_bg_color), 0.7), 0 -1 inset alpha(lighter(@theme_selected_bg_color), 0.7);
+}
+
+.spinbutton .button:first-child:active {
+ box-shadow: 2 2 inset alpha(lighter(@theme_selected_bg_color), 0.2), 0 -2 inset alpha(lighter(@theme_selected_bg_color), 0.2), 1 1 inset alpha(lighter(@theme_selected_bg_color), 0.7), 0 -1 inset alpha(lighter(@theme_selected_bg_color), 0.7);
+}
+
+.spinbutton .button:last-child:active {
+ box-shadow: 0 2 inset alpha(lighter(@theme_selected_bg_color), 0.2), -2 -2 inset alpha(lighter(@theme_selected_bg_color), 0.2), 0 1 inset alpha(lighter(@theme_selected_bg_color), 0.7), -1 -1 inset alpha(lighter(@theme_selected_bg_color), 0.7);
+}
+
GtkIconView.view.cell:selected,
GtkIconView.view.cell:selected:focus {
background-color: alpha(@theme_base_color, 0.0);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 094808c..097526c 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -245,6 +245,19 @@ GtkTreeView .separator,
border-radius: 0 2 2 0;
}
+/* Add back the glowy effect from the entry covered by the pushed button background*/
+.spinbutton .button:active {
+ box-shadow: 0 1 inset alpha(@theme_selected_bg_color, 0.2), 0 -1 inset alpha(@theme_selected_bg_color, 0.2);
+}
+
+.spinbutton .button:first-child:active {
+ box-shadow: 1 1 inset alpha(@theme_selected_bg_color, 0.2), 0 -1 inset alpha(@theme_selected_bg_color, 0.2);
+}
+
+.spinbutton .button:last-child:active {
+ box-shadow: 0 1 inset alpha(@theme_selected_bg_color, 0.2), -1 -1 inset alpha(@theme_selected_bg_color, 0.2);
+}
+
/****************
* Progress bar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]