gtk-css-engine r17 - in bzr-playground: . libccd/ccd themes/Gilouche-CSS/gtk-2.0



Author: robsta
Date: Mon Aug 18 13:50:57 2008
New Revision: 17
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=17&view=rev

Log:
Fix scaling of images.

Modified:
   bzr-playground/   (props changed)
   bzr-playground/libccd/ccd/ccd-background.c
   bzr-playground/themes/Gilouche-CSS/gtk-2.0/styles.css

Modified: bzr-playground/libccd/ccd/ccd-background.c
==============================================================================
--- bzr-playground/libccd/ccd/ccd-background.c	(original)
+++ bzr-playground/libccd/ccd/ccd-background.c	Mon Aug 18 13:50:57 2008
@@ -100,6 +100,9 @@
 	}
 
 	if (bg_image && bg_image->spec != CCD_PROPERTY_SPEC_UNSET) {
+
+		cairo_pattern_t *pattern;
+
 		dx = (double) width / 
 		     cairo_image_surface_get_width (bg_image->image.surface);
 		dy = (double) height /
@@ -108,6 +111,10 @@
 
 		cairo_set_source_surface (cr, bg_image->image.surface,
 					  x / dx, y / dy);
+
+		pattern = cairo_get_source (cr);
+		cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
+
 		cairo_rectangle (cr, x / dx, y / dy, width / dx, height / dy);
 		cairo_fill (cr);
 	}

Modified: bzr-playground/themes/Gilouche-CSS/gtk-2.0/styles.css
==============================================================================
--- bzr-playground/themes/Gilouche-CSS/gtk-2.0/styles.css	(original)
+++ bzr-playground/themes/Gilouche-CSS/gtk-2.0/styles.css	Mon Aug 18 13:50:57 2008
@@ -74,25 +74,27 @@
 }
 
 option {
-	background-color: red;
+	background-color: #fbf8f1;
 }
 
 check {
 	background-color: green;
 }
 
+/* Seems like all boxes used all over the place*/
 box {
-	background-color: darkkhaki;
-	border: 1px solid black;
+	background-color: #fbf8f1;
+	border: 0px solid black;
 }
 
-flatbox {
-	background-color: darkkhaki;
-	border: 1px solid black;
+/* A button*/
+GtkButton {
+	border: 1px solid #a99975;
+	background-image: url(button-back.png);
 }
 
 GtkEntry flatbox {
-	background-color: darkkhaki;
+	background-color: #fbf8f1;
 	border: none;
 }
 
@@ -106,16 +108,19 @@
 }
 
 slider {
-	background-color: orange;
-	border: 1px solid black;
+	background-color: #fff;
+/*	background-image: url(slider-background.png); */
+	border: 1px solid #587ba1;
 }
 
 extension {
 	border: 1px solid black;
 }
 
+/* When a widget have focus*/
+
 focus {
-	border: 2px dotted yellow;
+	border: 1px solid blue;
 }
 
 handle {
@@ -140,11 +145,17 @@
 	border: 1px dotted black;
 }
 
+/* The bar at the top*/
+
+/*
 GtkMenuBar {
 	border-bottom: none;
+	background-color: #fbf8f1;
+	border-width: 0px;
 }
+*/
 
 GtkProgressBar:prelight {
-	background-color: yellow;
+	background-color: #587ba1;
 }
 



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