[gnome-themes-standard] content-view: use a light noise texture for content view backgrounds



commit db00fa24d8e23206163600703470ed182ff6797f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Nov 20 14:27:04 2012 -0500

    content-view: use a light noise texture for content view backgrounds
    
    This is currently used at least by Documents, Photos, Baobab, Clocks and
    Bijiben.

 themes/Adwaita/gtk-3.0/assets/Makefile.am          |    2 +
 .../Adwaita/gtk-3.0/assets/noise-texture-dark.png  |  Bin 0 -> 69136 bytes
 .../Adwaita/gtk-3.0/assets/noise-texture-light.png |  Bin 0 -> 69136 bytes
 themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css |    7 +++
 themes/Adwaita/gtk-3.0/gtk-widgets-assets.css      |    7 +++
 themes/Adwaita/gtk-3.0/gtk-widgets.css             |   44 +++++++++++++------
 themes/Adwaita/gtk-3.0/gtk.gresource.xml           |    2 +
 7 files changed, 48 insertions(+), 14 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/assets/Makefile.am b/themes/Adwaita/gtk-3.0/assets/Makefile.am
index 9ba79aa..ca07860 100644
--- a/themes/Adwaita/gtk-3.0/assets/Makefile.am
+++ b/themes/Adwaita/gtk-3.0/assets/Makefile.am
@@ -47,6 +47,8 @@ EXTRA_DIST = 		\
 	menuitem-radio-checked.png \
 	menuitem-radio-checked-insensitive.png \
 	menuitem-radio-checked-selected.png \
+	noise-texture-dark.png \
+	noise-texture-light.png \
 	pane-separator-grip.svg \
 	pane-separator-grip-vertical.svg \
 	radio-checked.png \
diff --git a/themes/Adwaita/gtk-3.0/assets/noise-texture-dark.png b/themes/Adwaita/gtk-3.0/assets/noise-texture-dark.png
new file mode 100644
index 0000000..f73293e
Binary files /dev/null and b/themes/Adwaita/gtk-3.0/assets/noise-texture-dark.png differ
diff --git a/themes/Adwaita/gtk-3.0/assets/noise-texture-light.png b/themes/Adwaita/gtk-3.0/assets/noise-texture-light.png
new file mode 100644
index 0000000..f73293e
Binary files /dev/null and b/themes/Adwaita/gtk-3.0/assets/noise-texture-light.png differ
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
index 1e76527..1a03edd 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
@@ -405,3 +405,10 @@
 .cursor-handle.top {
     background-image: url("assets/scale-slider-down-backdrop-dark.png");
 }
+
+/****************
+ * Content view *
+ ****************/
+.content-view.view {
+    background-image: url("assets/noise-texture-dark.png");
+}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
index c47b67d..40d2dd2 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
@@ -409,3 +409,10 @@
 .cursor-handle.top {
     background-image: url("assets/scale-slider-down-backdrop.png");
 }
+
+/****************
+ * Content view *
+ ****************/
+.content-view.view {
+    background-image: url("assets/noise-texture-light.png");
+}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index d86d06b..051f0b0 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -3288,30 +3288,42 @@ column-header .button.dnd {
     background-color: @content_view_bg;
 }
 
-.content-view.view:hover {
-    background-color: @theme_bg_color;
-    color: @theme_text_color;
+.content-view.view:insensitive {
+    background-color: @theme_unfocused_base_color;
+    background-image: none;
 }
 
-.content-view.view:selected,
-.content-view.view:active {
-    background-color: @theme_selected_bg_color;
+.content-view.view:backdrop {
+    background-color: @sidebar_bg_unfocused;
+    background-image: none;
 }
 
-.content-view.view:insensitive {
-    background-color: @theme_unfocused_base_color;
+/* FIXME: EggListBox should set the .cell style class on
+ * the background it renders for the children, like
+ * GtkIconView and GtkTreeView do */
+.content-view.cell {
+    background-color: transparent;
+    background-image: none;
 }
 
-.content-view.view:backdrop,
-.content-view.view:hover:backdrop {
-    background-color: @sidebar_bg_unfocused;
+EggListBox.content-view:hover,
+.content-view.cell:hover {
+    background-color: @theme_bg_color;
 }
 
-.content-view.view:selected:backdrop {
-    background-color: @theme_unfocused_selected_bg_color;
+EggListBox.content-view:selected,
+EggListBox.content-view:active,
+.content-view.cell:selected,
+.content-view.cell:active {
+    background-color: @theme_selected_bg_color;
+    background-image: none;
 }
 
-.content-view.view .separator:backdrop { color: @theme_unfocused_bg_color; }
+EggListBox.content-view:selected:backdrop,
+.content-view.cell:selected:backdrop {
+    background-color: @theme_unfocused_selected_bg_color;
+    background-image: none;
+}
 
 GdMainIconView.content-view {
     -GdMainIconView-icon-size: 40;
@@ -3332,6 +3344,10 @@ GtkIconView.content-view.check:active {
     background-color: transparent;
 }
 
+.content-view.view .separator:backdrop {
+    color: @theme_unfocused_bg_color;
+}
+
 GtkIconView.content-view.check:hover,
 GtkIconView.content-view.check:insensitive,
 GtkIconView.content-view.check:backdrop,
diff --git a/themes/Adwaita/gtk-3.0/gtk.gresource.xml b/themes/Adwaita/gtk-3.0/gtk.gresource.xml
index d8eba61..84b6bc1 100644
--- a/themes/Adwaita/gtk-3.0/gtk.gresource.xml
+++ b/themes/Adwaita/gtk-3.0/gtk.gresource.xml
@@ -49,6 +49,8 @@
     <file preprocess="to-pixdata">assets/menuitem-radio-checked-insensitive.png</file>
     <file preprocess="to-pixdata">assets/menuitem-radio-checked.png</file>
     <file preprocess="to-pixdata">assets/menuitem-radio-checked-selected.png</file>
+    <file preprocess="to-pixdata">assets/noise-texture-dark.png</file>
+    <file preprocess="to-pixdata">assets/noise-texture-light.png</file>
     <file preprocess="to-pixdata">assets/pane-separator-grip.svg</file>
     <file preprocess="to-pixdata">assets/pane-separator-grip-vertical.svg</file>
     <file preprocess="to-pixdata">assets/radio-checked-alt-dark.png</file>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]