[longomatch] Add style for check buttons



commit a666a6bcfb3cff506a447492fa36fa677ac58974
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Aug 26 17:05:39 2014 +0200

    Add style for check buttons

 .../Check-Radio/checkbox-checked-insensitive.png   |  Bin 0 -> 1277 bytes
 .../theme/gtk-2.0/Check-Radio/checkbox-checked.png |  Bin 0 -> 1344 bytes
 .../Check-Radio/checkbox-unchecked-insensitive.png |  Bin 0 -> 1044 bytes
 .../gtk-2.0/Check-Radio/checkbox-unchecked.png     |  Bin 0 -> 1073 bytes
 data/theme/gtk-2.0/checkbox.rc                     |   98 ++++++++++++++++++++
 data/theme/gtk-2.0/gtkrc                           |    2 +
 6 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gtk-2.0/Check-Radio/checkbox-checked-insensitive.png 
b/data/theme/gtk-2.0/Check-Radio/checkbox-checked-insensitive.png
new file mode 100644
index 0000000..54a13b0
Binary files /dev/null and b/data/theme/gtk-2.0/Check-Radio/checkbox-checked-insensitive.png differ
diff --git a/data/theme/gtk-2.0/Check-Radio/checkbox-checked.png 
b/data/theme/gtk-2.0/Check-Radio/checkbox-checked.png
new file mode 100644
index 0000000..180b796
Binary files /dev/null and b/data/theme/gtk-2.0/Check-Radio/checkbox-checked.png differ
diff --git a/data/theme/gtk-2.0/Check-Radio/checkbox-unchecked-insensitive.png 
b/data/theme/gtk-2.0/Check-Radio/checkbox-unchecked-insensitive.png
new file mode 100644
index 0000000..3d764a0
Binary files /dev/null and b/data/theme/gtk-2.0/Check-Radio/checkbox-unchecked-insensitive.png differ
diff --git a/data/theme/gtk-2.0/Check-Radio/checkbox-unchecked.png 
b/data/theme/gtk-2.0/Check-Radio/checkbox-unchecked.png
new file mode 100644
index 0000000..623820a
Binary files /dev/null and b/data/theme/gtk-2.0/Check-Radio/checkbox-unchecked.png differ
diff --git a/data/theme/gtk-2.0/checkbox.rc b/data/theme/gtk-2.0/checkbox.rc
new file mode 100644
index 0000000..f6f661f
--- /dev/null
+++ b/data/theme/gtk-2.0/checkbox.rc
@@ -0,0 +1,98 @@
+# Check Buttons
+
+style "longomatch-checkbox"
+{
+  engine "pixmap"
+  {
+    image
+    {
+            function                   = CHECK
+            recolorable                = TRUE
+            state                      = NORMAL
+            shadow                     = OUT
+            overlay_file               = "Check-Radio/checkbox-unchecked.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+            state                      = PRELIGHT
+            shadow                     = OUT
+            overlay_file               = "Check-Radio/checkbox-unchecked.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+            state                      = ACTIVE
+            shadow                     = OUT
+            overlay_file               = "Check-Radio/checkbox-unchecked.png"
+            overlay_stretch            = FALSE
+        }
+       image
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+            state                      = SELECTED
+            shadow                     = OUT
+            overlay_file               = "Check-Radio/checkbox-unchecked.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+            state                      = INSENSITIVE
+            shadow                     = OUT
+            overlay_file               = "Check-Radio/checkbox-unchecked-insensitive.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+           state                       = NORMAL
+            shadow                     = IN
+            overlay_file               = "Check-Radio/checkbox-checked.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+                 state                 = PRELIGHT
+            shadow                     = IN
+            overlay_file               = "Check-Radio/checkbox-checked.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+           state                       = ACTIVE
+            shadow                     = IN
+            overlay_file               = "Check-Radio/checkbox-checked.png"
+            overlay_stretch            = FALSE
+        }
+       image
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+           state                       = SELECTED
+            shadow                     = IN
+            overlay_file               = "Check-Radio/checkbox-checked.png"
+            overlay_stretch            = FALSE
+        }
+       image 
+       {
+            function                   = CHECK
+            recolorable                = TRUE
+            state                      = INSENSITIVE
+            shadow                     = IN
+            overlay_file               = "Check-Radio/checkbox-checked-insensitive.png"
+            overlay_stretch            = FALSE
+       }
+}
+}
diff --git a/data/theme/gtk-2.0/gtkrc b/data/theme/gtk-2.0/gtkrc
index 443e041..0962cb7 100644
--- a/data/theme/gtk-2.0/gtkrc
+++ b/data/theme/gtk-2.0/gtkrc
@@ -258,6 +258,7 @@ include "buttons.rc"
 include "notebook.rc"
 include "teamcombobox.rc"
 include "combobox.rc"
+include "checkbox.rc"
 
 
 class "GtkWidget"                                style "longomatch-default"
@@ -265,6 +266,7 @@ class "GtkEntry"                                 style "longomatch-entry"
 class "GtkButton"                                style "longomatch-square-button"
 # Background for the menubar
 class "GtkMenuBar"                               style "longomatch-menubar"
+class "GtkCheckButton"                              style "longomatch-checkbox"
 # Text color for the menu items in the bar and the menus
 widget_class "*.GtkMenu.*"                       style "longomatch-menuitem"
 widget_class "*.GtkMenuBar.*"                    style "longomatch-menuitem"


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