[gnome-themes-standard] Widget theme: window unfocused column header, views and other misc bits.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: window unfocused column header, views and other misc bits.
- Date: Thu, 8 Dec 2011 15:25:18 +0000 (UTC)
commit 5e8796994958962fdf4fbcb6c4e3afb991a1a159
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu Dec 8 16:25:09 2011 +0100
Widget theme: window unfocused column header, views and other misc bits.
themes/Adwaita/gtk-3.0/gtk-widgets-borders.css | 16 +++++++++++++++-
themes/Adwaita/gtk-3.0/gtk-widgets.css | 22 +++++++++++++++-------
themes/Adwaita/gtk-3.0/gtk.css | 5 ++---
3 files changed, 32 insertions(+), 11 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-borders.css b/themes/Adwaita/gtk-3.0/gtk-widgets-borders.css
index 0c18344..9bba6b5 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-borders.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-borders.css
@@ -149,6 +149,17 @@ column-header .button:active:hover {
border-radius: 0;
}
+column-header.button:window-unfocused,
+column-header .button:window-unfocused {
+ border-image: -gtk-gradient (linear,
+ left top, left bottom,
+ from (@unfocused_borders_color),
+ to (@theme_unfocused_base_color)) 0 1 0 0;
+ border-width: 0 1 0 0;
+ border-radius: 0;
+
+}
+
column-header.button:last-child,
column-header:last-child .button,
column-header.button:hover:last-child,
@@ -164,9 +175,12 @@ 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-hedaer:last-child .button:window-unfocused {
border-image: none;
border-width: 0;
+ border-radius: 0;
}
/* unfocused window: generic element borders */
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 7cded84..bd9a8d6 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1569,7 +1569,7 @@ GtkIconView.view.cell:selected:focus {
.view {
background-color: @theme_base_color;
- color: @theme_fg_color;
+ color: @theme_text_color;
border-radius: 0;
}
@@ -1590,6 +1590,13 @@ GtkTreeView.view {
background-color: @theme_base_color;
}
+.view:window-unfocused,
+GtkTreeView:window-unfocused, /* not working */
+GtkTreeView.view:window-unfocused /*not working*/ {
+ background-color: @theme_unfocused_base_color;
+ color: @theme_unfocused_text_color;
+}
+
/*column-header {
padding: 0 4;
}*/
@@ -1602,7 +1609,7 @@ column-header .button {
column-header.button,
column-header .button,
column-header.button:insensitive,
-column-header:insensitive. .button,
+/* column-header:insensitive .button, */
column-header .button:insensitive,
column-header.button:hover,
column-header .button:hover,
@@ -1616,6 +1623,12 @@ column-header .button:focus:hover {
font-weight: bold; /* Not sure about this one */
}
+column-header.button:window-unfocused,
+column-header .button:window-unfocused {
+ background-color: @theme_unfocused_base_color;
+ /* color: FIXME */
+}
+
column-header.button:insensitive,
column-header:insensitive. .button,
column-header .button:insensitive {
@@ -1641,11 +1654,6 @@ column-header .button *:active:hover {
icon-shadow: none;
}
-column-header.button:window-unfocused,
-column-header .button:window-unfocused {
- border-image: none;
-}
-
row:hover {
border-width: 0;
}
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 1fd4476..58bb3c7 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -14,7 +14,6 @@
/* Colormap actually used by the theme, to be overridden in other css files */
@define-color theme_base_color @base_color;
@define-color theme_text_color @text_color;
- define-color theme_unfocused_text_color shade(@text_color, 1.4);
@define-color theme_bg_color @bg_color;
@define-color theme_fg_color @fg_color;
@define-color theme_tooltip_bg_color @tooltip_bg_color;
@@ -22,8 +21,8 @@
@define-color theme_selected_bg_color @selected_bg_color;
@define-color theme_selected_fg_color @selected_fg_color;
- define-color theme_unfocused_base_color shade(@insensitive_bg_color, 1.05);
- define-color theme_unfocused_text_color #a7aba7;
+ define-color theme_unfocused_base_color shade(@insensitive_bg_color, 1.015); /* I don't want the same color, hope not to hurt usability to much here */
+ define-color theme_unfocused_text_color mix(@theme_unfocused_fg_color, @theme_text_color, 0.5); /* Need something darker here to have stuff nicelly readable*/
@define-color theme_unfocused_fg_color #a7aba7;
@define-color theme_unfocused_bg_color @theme_bg_color; /* FIXME */
@define-color theme_unfocused_selected_bg_color @theme_selected_bg_color; /* FIXME */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]