[gnome-control-center] background: use a lighter texture for solid colors.



commit f49261bb8d0728f77c45a287c4fc9c94aaa7a494
Author: Jakub Steiner <jimmac gmail com>
Date:   Fri Aug 24 16:25:53 2012 +0200

    background: use a lighter texture for solid colors.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682612

 panels/background/Makefile.am             |    5 +++++
 panels/background/bg-colors-source.c      |    2 +-
 panels/background/noise-texture-light.png |  Bin 0 -> 69136 bytes
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am
index e1d98fe..29fcb0e 100644
--- a/panels/background/Makefile.am
+++ b/panels/background/Makefile.am
@@ -19,6 +19,7 @@ INCLUDES =						\
 	-DUIDIR="\"$(uidir)\""				\
 	-DDATADIR="\"$(datadir)\""			\
 	-DGNOME_DESKTOP_USE_UNSTABLE_API		\
+	-DPIXMAP_DIR=\""$(datadir)/gnome-control-center/pixmaps"\"	\
 	$(NULL)
 
 ccpanelsdir = $(PANELS_DIR)
@@ -84,6 +85,10 @@ gdesktop-enums-types.c: $(GDESKTOP_PREFIX)/include/gsettings-desktop-schemas/gde
 
 @INTLTOOL_DESKTOP_RULE@
 
+pixmapdir  = $(pkgdatadir)/pixmaps
+pixmap_DATA = \
+	noise-texture-light.png
+
 desktopdir = $(datadir)/applications
 desktop_in_files = gnome-background-panel.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
diff --git a/panels/background/bg-colors-source.c b/panels/background/bg-colors-source.c
index 0223dad..e80c3a6 100644
--- a/panels/background/bg-colors-source.c
+++ b/panels/background/bg-colors-source.c
@@ -86,7 +86,7 @@ bg_colors_source_init (BgColorsSource *self)
       /* It does have a URI, it's "none" */
 
       g_object_set (G_OBJECT (item),
-                    "uri", "file:///" DATADIR "/gnome-shell/theme/noise-texture.png",
+                    "uri", "file:///" DATADIR "/gnome-control-center/pixmaps/noise-texture-light.png",
 		    "primary-color", items[i].pcolor,
 		    "secondary-color", items[i].pcolor,
 		    "shading", items[i].type,
diff --git a/panels/background/noise-texture-light.png b/panels/background/noise-texture-light.png
new file mode 100644
index 0000000..f73293e
Binary files /dev/null and b/panels/background/noise-texture-light.png differ



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