[gnome-themes-standard] Widget theme: unfocused windows new style scrollbars.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: unfocused windows new style scrollbars.
- Date: Wed, 21 Dec 2011 16:59:27 +0000 (UTC)
commit 1c237835a9d08c469c43262e12e8fe83cde48898
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Wed Dec 21 17:59:09 2011 +0100
Widget theme: unfocused windows new style scrollbars.
themes/Adwaita/gtk-3.0/gtk-dark.css | 2 +
themes/Adwaita/gtk-3.0/gtk-widgets.css | 34 +++++++++++++++++++++++--------
themes/Adwaita/gtk-3.0/gtk.css | 4 ++-
3 files changed, 30 insertions(+), 10 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index cff0fd4..25d9d4f 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -122,10 +122,12 @@
@define-color scrollbar_trough shade(@theme_bg_color, 1.2);
@define-color scrollbar_trough_insensitive shade(@theme_bg_color, 1.05); /* FIXME */
+ define-color scrollbar_trough shade(@theme_unfocused_bg_color, 1.2);
@define-color scrollbar_slider mix(@scrollbar_trough, @theme_fg_color, 0.15);
@define-color scrollbar_slider_prelight mix(@scrollbar_trough, @theme_fg_color, 0.3);
@define-color scrollbar_slider_active @theme_selected_bg_color;
@define-color scrollbar_slider_insensitive @insensitive_bg_color; /* FIXME */
+ define-color scrollbar_slider_unfocused mix(@scrollbar_trough_unfocused, @theme_unfocused_fg_color, 0.15);
@define-color treeview_focus_border shade (@theme_selected_bg_color, 1.20);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 27a2aa6..31c7912 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -4,7 +4,6 @@
background-clip: padding-box;
- /* Style properties */
-GtkToolButton-icon-spacing: 4;
-GtkTextView-error-underline-color: @error_color;
@@ -1257,6 +1256,31 @@ GtkComboBox .button *:hover {
border-image: none;
}
+.scrollbar.trough:insensitive {
+ background-color: @scrollbar_trough_insensitive;
+ border-style: solid;
+ border-image: none;
+ border-color: transparent;
+ border-width: 3;
+}
+
+.scrollbar.trough:window-unfocused {
+ background-image: none;
+ background-color: @scrollbar_trough_unfocused;
+ border-width: 0;
+ border-radius: 0;
+ border-image: none;
+}
+
+.scrollbar.trough:insensitive:window-unfocused {
+ background-image: none;
+ background-color: mix(@scrollbar_trough_unfocused, @scrollbar_trough_insensitive, 0.5);
+ border-width: 0;
+ border-radius: 0;
+ border-image: none;
+}
+
+
.scrollbar.slider {
background-image: none;
background-color: @scrollbar_slider;
@@ -1294,14 +1318,6 @@ GtkComboBox .button *:hover {
border-width: 3;
}
-.scrollbar.trough:insensitive {
- background-color: @scrollbar_trough_insensitive;
- border-style: solid;
- border-image: none;
- border-color: transparent;
- border-width: 3;
-}
-
/*********
* Menus *
*********/
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 484631a..eb8a38f 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -104,11 +104,13 @@
@define-color trough_bg_color_b #e0e0dd;
@define-color scrollbar_trough shade(@theme_bg_color, 0.9);
- define-color scrollbar_trough_insensitive shade(@theme_bg_color, 0.95);
+ define-color scrollbar_trough_insensitive shade(@theme_bg_color, 0.9);
+ define-color scrollbar_trough_unfocused shade(@theme_unfocused_bg_color, 0.9);
@define-color scrollbar_slider mix(@scrollbar_trough, @theme_fg_color, 0.35);
@define-color scrollbar_slider_prelight mix(@scrollbar_trough, @theme_fg_color, 0.5);
@define-color scrollbar_slider_active @theme_selected_bg_color;
@define-color scrollbar_slider_insensitive @insensitive_bg_color; /* FIXME */
+ define-color scrollbar_slider_unfocused mix(@scrollbar_trough_unfocused, @theme_unfocused_fg_color, 0.35);
@define-color switch_slider_color #eeeeec;
@define-color switch_slider_active_border #2a79cb;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]