[gnome-themes-standard] Dark theme: fix column-hedaers last child for window unfocused, some scrollbars tweakings.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Dark theme: fix column-hedaers last child for window unfocused, some scrollbars tweakings.
- Date: Thu, 22 Dec 2011 13:16:45 +0000 (UTC)
commit d4d515a5be6b0e8c3a439cca7026c6361fc8f472
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu Dec 22 14:16:39 2011 +0100
Dark theme: fix column-hedaers last child for window unfocused, some scrollbars tweakings.
themes/Adwaita/gtk-3.0/gtk-dark.css | 4 ++--
.../Adwaita/gtk-3.0/gtk-widgets-borders-dark.css | 4 +++-
.../Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css | 7 +++++++
themes/Adwaita/gtk-3.0/gtk-widgets.css | 14 ++++++++++++--
themes/Adwaita/gtk-3.0/gtk.css | 4 ++--
5 files changed, 26 insertions(+), 7 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 3364f34..4d970a0 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -126,8 +126,8 @@
@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 scrollbar_slider_insensitive alpha(black, 0); /* FIXME should be transparent */
+ define-color scrollbar_slider_unfocused shade(@theme_unfocused_base_color, 0.8);
@define-color treeview_focus_border shade (@theme_selected_bg_color, 1.20);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-borders-dark.css b/themes/Adwaita/gtk-3.0/gtk-widgets-borders-dark.css
index 7c00589..c4d8d66 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-borders-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-borders-dark.css
@@ -166,7 +166,9 @@ column-header:last-child .button:active:focus:hover,
column-header.button:active:focus:last-child,
column-header:last-child .button:active:focus,
column-header.button:active:hover:last-child,
-column-header:last-child .button:active:hover {
+column-header:last-child .button:active:hover,
+column-header.button:window-unfocused:last-child,
+column-header:last-child .button:window-unfocused {
border-image: none;
border-width: 0;
}
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 adee489..2c44386 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
@@ -98,3 +98,10 @@ GtkSwitch.slider {
box-shadow: 0 -1 inset alpha(white, 0.04), 0 1 inset shade(@theme_bg_color, 1.1), 0 2 inset alpha(@borders, 0.2);
}
+.scrollbar.trough.vertical {
+ box-shadow: none;
+}
+
+.scrollbar.trough.horizontal {
+ box-shadow: none;
+}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index d624e40..954e96e 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1254,11 +1254,13 @@ GtkComboBox .button *:hover {
border-image: none;
}
-.scrollbar.trough.vertical {
+.scrollbar.trough.vertical,
+.scrollbar.trough.vertical:window-unfocused {
box-shadow: -1 0 inset alpha(@theme_text_color, 0.05), 1 0 inset alpha(@theme_text_color, 0.1);
}
-.scrollbar.trough.horizontal {
+.scrollbar.trough.horizontal,
+.scrollbar.trough.horizontal:window-unfocused {
box-shadow: 0 -1 inset alpha(@theme_text_color, 0.05), 0 1 inset alpha(@theme_text_color, 0.1);
}
@@ -1324,6 +1326,14 @@ GtkComboBox .button *:hover {
border-width: 3;
}
+.scrollbar.slider:window-unfocused {
+ background-color: @scrollbar_slider_unfocused;
+ 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 fd4aa20..f34372c 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -110,8 +110,8 @@
@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 scrollbar_slider_insensitive alpha(black, 0); /* FIXME should be transparent */
+ define-color scrollbar_slider_unfocused @theme_unfocused_bg_color;
@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]