[gnome-themes-standard] Add support for GtkComboBoxEntry



commit e9189c3932de5e106b81aa33e79f44b9ea3de571
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jul 8 21:26:24 2012 -0400

    Add support for GtkComboBoxEntry
    
    RTL is also supported.

 .../Adwaita/gtk-2.0/Arrows/arrow-down-pressed.png  |  Bin 228 -> 0 bytes
 .../Entry/combo-entry-border-active-flip.png       |  Bin 0 -> 396 bytes
 .../gtk-2.0/Entry/combo-entry-border-active.png    |  Bin 0 -> 380 bytes
 .../Entry/combo-entry-border-disabled-flip.png     |  Bin 0 -> 297 bytes
 .../gtk-2.0/Entry/combo-entry-border-disabled.png  |  Bin 0 -> 287 bytes
 .../gtk-2.0/Entry/combo-entry-border-flip.png      |  Bin 0 -> 320 bytes
 .../Adwaita/gtk-2.0/Entry/combo-entry-border.png   |  Bin 0 -> 313 bytes
 .../Entry/combo-entry-button-active-rtl.png        |  Bin 0 -> 283 bytes
 .../gtk-2.0/Entry/combo-entry-button-active.png    |  Bin 0 -> 279 bytes
 themes/Adwaita/gtk-2.0/Makefile.am                 |    1 -
 themes/Adwaita/gtk-2.0/gtkrc                       |  167 +++++++++++++++++++-
 11 files changed, 166 insertions(+), 2 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-active-flip.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-active-flip.png
new file mode 100644
index 0000000..8b2bd6d
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-active-flip.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-active.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-active.png
new file mode 100644
index 0000000..79a8dcd
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-active.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-disabled-flip.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-disabled-flip.png
new file mode 100644
index 0000000..9b11816
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-disabled-flip.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-disabled.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-disabled.png
new file mode 100644
index 0000000..c104552
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-disabled.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-flip.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-flip.png
new file mode 100644
index 0000000..f2e6979
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border-flip.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-border.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border.png
new file mode 100644
index 0000000..a47af57
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-border.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-button-active-rtl.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-button-active-rtl.png
new file mode 100644
index 0000000..b544c3d
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-button-active-rtl.png differ
diff --git a/themes/Adwaita/gtk-2.0/Entry/combo-entry-button-active.png b/themes/Adwaita/gtk-2.0/Entry/combo-entry-button-active.png
new file mode 100644
index 0000000..1bb73b9
Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Entry/combo-entry-button-active.png differ
diff --git a/themes/Adwaita/gtk-2.0/Makefile.am b/themes/Adwaita/gtk-2.0/Makefile.am
index 577af90..5ae9008 100644
--- a/themes/Adwaita/gtk-2.0/Makefile.am
+++ b/themes/Adwaita/gtk-2.0/Makefile.am
@@ -10,7 +10,6 @@ asset_data =
 	Arrows/arrow-down-insens.png \
 	Arrows/arrow-down.png \
 	Arrows/arrow-down-prelight.png \
-	Arrows/arrow-down-pressed.png \
 	Arrows/arrow-left.png \
 	Arrows/arrow-right.png \
 	Arrows/arrow-right-prelight.png \
diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc
index aea11fa..15812e4 100755
--- a/themes/Adwaita/gtk-2.0/gtkrc
+++ b/themes/Adwaita/gtk-2.0/gtkrc
@@ -271,7 +271,7 @@ style "default"
 	{
 	  function			= ARROW
 	  state			= ACTIVE
-	  overlay_file		= "Arrows/arrow-down-pressed.png"
+	  overlay_file		= "Arrows/arrow-down-prelight.png"
 	  overlay_border		= { 0, 0, 0, 0 }
 	  overlay_stretch		= FALSE
 	  arrow_direction		= DOWN
@@ -895,6 +895,169 @@ style "entry"
     }
 }
 
+style "combobox_entry"
+{
+	xthickness	= 3
+	ythickness   	= 4
+
+	engine "pixmap"
+	{
+        # LTR version
+	image
+	{
+		function		= SHADOW
+		detail			= "entry"
+                state                   = NORMAL
+		shadow			= IN
+		file			= "Entry/combo-entry-border.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+	}
+	image
+	{
+		function		= SHADOW
+		detail			= "entry"
+                state                   = INSENSITIVE
+		shadow			= IN
+		file			= "Entry/combo-entry-border-disabled.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+	}
+        image
+        {
+		function		= SHADOW
+		detail			= "entry"
+                state                   = ACTIVE
+		file			= "Entry/combo-entry-border-active.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+        }
+
+        # RTL version
+	image
+	{
+		function		= SHADOW
+		detail			= "entry"
+                state                   = NORMAL
+		shadow			= IN
+		file			= "Entry/combo-entry-border-flip.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+	}
+	image
+	{
+		function		= SHADOW
+		detail			= "entry"
+                state                   = INSENSITIVE
+		shadow			= IN
+		file			= "Entry/combo-entry-border-disabled-flip.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+	}
+        image
+        {
+		function		= SHADOW
+		detail			= "entry"
+                state                   = ACTIVE
+		file			= "Entry/combo-entry-border-active-flip.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+        }
+    }
+}
+
+style "combobox_entry_button"
+{
+        fg[ACTIVE] = @text_color
+
+	engine "pixmap"
+	{
+
+        # LTR version
+	image
+	{
+		function		= BOX
+                state                   = NORMAL
+		file			= "Entry/combo-entry-border-flip.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+	}
+	image
+	{
+		function		= BOX
+                state                   = PRELIGHT
+		file			= "Entry/combo-entry-border-flip.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+	}
+	image
+	{
+		function		= BOX
+                state                   = INSENSITIVE
+		file			= "Entry/combo-entry-border-disabled-flip.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+	}
+        image
+        {
+		function		= BOX
+                state                   = ACTIVE
+		file			= "Entry/combo-entry-button-active.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = LTR
+        }
+
+        # RTL version
+	image
+	{
+		function		= BOX
+                state                   = NORMAL
+		file			= "Entry/combo-entry-border.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+	}
+	image
+	{
+		function		= BOX
+                state                   = PRELIGHT
+		file			= "Entry/combo-entry-border.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+	}
+	image
+	{
+		function		= BOX
+                state                   = INSENSITIVE
+		file			= "Entry/combo-entry-border-disabled.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+	}
+        image
+        {
+		function		= BOX
+                state                   = ACTIVE
+		file			= "Entry/combo-entry-button-active-rtl.png"
+		border			= { 4, 4, 4, 4 }
+		stretch			= TRUE
+                direction               = RTL
+        }
+
+        }
+}
+
 style "spinbutton"	= "default"
 {
 	xthickness	= 3
@@ -1595,6 +1758,8 @@ widget_class "*<GtkComboBox>*<GtkSeparator>"	style "combobox_separator"
 widget_class "*HandleBox"               style "handlebox"
 widget_class "*<GtkTreeView>*<GtkButton>*"      style "treeview_header"
 widget_class "*<GtkFileChooserDefault>*<GtkToolbar>" style "inline_toolbar"
+widget_class "*<GtkComboBoxEntry>*<GtkEntry>"   style "combobox_entry"
+widget_class "*<GtkComboBoxEntry>*<GtkButton>"  style "combobox_entry_button"
 
 widget_class "*Chrom*Button*"		style "button"
 



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