[longomatch] Theme the scrollbars



commit 4a49f217cbdedc01e3b04d9e424e27728eea2ab3
Author: Julien Moutte <julien fluendo com>
Date:   Fri Oct 24 18:06:29 2014 +0200

    Theme the scrollbars

 data/theme/gtk-2.0/Scrollbar/arrow-down-active.png |  Bin 0 -> 2804 bytes
 .../gtk-2.0/Scrollbar/arrow-down-inactive.png      |  Bin 0 -> 2807 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-down.png        |  Bin 0 -> 2804 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-left-active.png |  Bin 0 -> 2818 bytes
 .../gtk-2.0/Scrollbar/arrow-left-inactive.png      |  Bin 0 -> 2800 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-left.png        |  Bin 0 -> 2800 bytes
 .../theme/gtk-2.0/Scrollbar/arrow-right-active.png |  Bin 0 -> 2817 bytes
 .../gtk-2.0/Scrollbar/arrow-right-inactive.png     |  Bin 0 -> 2801 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-right.png       |  Bin 0 -> 2801 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-up-active.png   |  Bin 0 -> 2803 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-up-inactive.png |  Bin 0 -> 2806 bytes
 data/theme/gtk-2.0/Scrollbar/arrow-up.png          |  Bin 0 -> 2803 bytes
 .../gtk-2.0/Scrollbar/slider-horizontal-active.png |  Bin 0 -> 2937 bytes
 data/theme/gtk-2.0/Scrollbar/slider-horizontal.png |  Bin 0 -> 2928 bytes
 .../gtk-2.0/Scrollbar/slider-vertical-active.png   |  Bin 0 -> 2954 bytes
 data/theme/gtk-2.0/Scrollbar/slider-vertical.png   |  Bin 0 -> 2949 bytes
 data/theme/gtk-2.0/Scrollbar/trough-horizontal.png |  Bin 0 -> 2781 bytes
 data/theme/gtk-2.0/Scrollbar/trough-vertical.png   |  Bin 0 -> 2780 bytes
 data/theme/gtk-2.0/gtkrc                           |    2 +
 data/theme/gtk-2.0/scrollbar.rc                    |  230 ++++++++++++++++++++
 20 files changed, 232 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-down-active.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-down-active.png
new file mode 100755
index 0000000..0a560b0
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-down-active.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-down-inactive.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-down-inactive.png
new file mode 100755
index 0000000..ccfc805
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-down-inactive.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-down.png b/data/theme/gtk-2.0/Scrollbar/arrow-down.png
new file mode 100755
index 0000000..ca355b4
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-down.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-left-active.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-left-active.png
new file mode 100755
index 0000000..ce78e00
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-left-active.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-left-inactive.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-left-inactive.png
new file mode 100755
index 0000000..a03de75
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-left-inactive.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-left.png b/data/theme/gtk-2.0/Scrollbar/arrow-left.png
new file mode 100755
index 0000000..c6fa7ae
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-left.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-right-active.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-right-active.png
new file mode 100755
index 0000000..72519ae
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-right-active.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-right-inactive.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-right-inactive.png
new file mode 100755
index 0000000..2273df4
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-right-inactive.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-right.png b/data/theme/gtk-2.0/Scrollbar/arrow-right.png
new file mode 100755
index 0000000..1d5254b
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-right.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-up-active.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-up-active.png
new file mode 100755
index 0000000..28fa53f
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-up-active.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-up-inactive.png 
b/data/theme/gtk-2.0/Scrollbar/arrow-up-inactive.png
new file mode 100755
index 0000000..183083b
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-up-inactive.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/arrow-up.png b/data/theme/gtk-2.0/Scrollbar/arrow-up.png
new file mode 100755
index 0000000..7a32fc8
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/arrow-up.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/slider-horizontal-active.png 
b/data/theme/gtk-2.0/Scrollbar/slider-horizontal-active.png
new file mode 100755
index 0000000..839474e
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/slider-horizontal-active.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/slider-horizontal.png 
b/data/theme/gtk-2.0/Scrollbar/slider-horizontal.png
new file mode 100755
index 0000000..fc3bdb7
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/slider-horizontal.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/slider-vertical-active.png 
b/data/theme/gtk-2.0/Scrollbar/slider-vertical-active.png
new file mode 100755
index 0000000..880935c
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/slider-vertical-active.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/slider-vertical.png 
b/data/theme/gtk-2.0/Scrollbar/slider-vertical.png
new file mode 100755
index 0000000..ae950f5
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/slider-vertical.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/trough-horizontal.png 
b/data/theme/gtk-2.0/Scrollbar/trough-horizontal.png
new file mode 100755
index 0000000..724d6c2
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/trough-horizontal.png differ
diff --git a/data/theme/gtk-2.0/Scrollbar/trough-vertical.png 
b/data/theme/gtk-2.0/Scrollbar/trough-vertical.png
new file mode 100755
index 0000000..f792608
Binary files /dev/null and b/data/theme/gtk-2.0/Scrollbar/trough-vertical.png differ
diff --git a/data/theme/gtk-2.0/gtkrc b/data/theme/gtk-2.0/gtkrc
index 00cad1b..ef70821 100644
--- a/data/theme/gtk-2.0/gtkrc
+++ b/data/theme/gtk-2.0/gtkrc
@@ -128,6 +128,7 @@ include "handles.rc"
 include "radiobutton.rc"
 include "entry.rc"
 include "range.rc"
+include "scrollbar.rc"
 
 class "GtkWidget"                                style "longomatch-default"
 class "GtkEntry"                                 style "longomatch-entry"
@@ -145,6 +146,7 @@ class "GtkTextView"                              style "longomatch-treeview"
 # Indeed when providing different images for different orientation, GTK will pick the wrong orientation when 
the scale reaches boundaries…
 class "GtkHScale"                                style "longomatch-hscale"
 class "GtkVScale"                                style "longomatch-vscale"
+class "GtkScrollbar"                             style "longomatch-scrollbar"
 
 # Background for the menubar
 class "GtkMenuBar"                               style "longomatch-menubar"
diff --git a/data/theme/gtk-2.0/scrollbar.rc b/data/theme/gtk-2.0/scrollbar.rc
new file mode 100644
index 0000000..cf45c5e
--- /dev/null
+++ b/data/theme/gtk-2.0/scrollbar.rc
@@ -0,0 +1,230 @@
+style "longomatch-scrollbar"
+{
+  engine "pixmap" 
+  {
+    image 
+    {
+          function                     = BOX
+          recolorable                  = TRUE
+          detail                       = "trough"
+          file                         = "Scrollbar/trough-horizontal.png"
+          border                       = { 2, 2, 7, 7 }
+          orientation                  = HORIZONTAL
+          stretch                      = TRUE
+    }
+    image 
+    {
+          function                     = BOX
+          recolorable                  = TRUE
+          detail                       = "trough"
+          file                         = "Scrollbar/trough-vertical.png"
+          border                       = { 7, 7, 2, 2 }
+          orientation                  = VERTICAL
+          stretch                      = TRUE
+    }
+    image 
+    {
+          function                     = SLIDER
+          recolorable                  = TRUE
+          state                                = NORMAL
+          file                         = "Scrollbar/slider-horizontal.png"
+          border                       = { 5, 5, 5, 5 }
+          stretch                      = TRUE
+          orientation                  = HORIZONTAL
+    }
+    image 
+    {
+          function                     = SLIDER
+          recolorable                  = TRUE
+          state                                = ACTIVE
+          file                         = "Scrollbar/slider-horizontal-active.png"
+          border                       = { 5, 5, 5, 5 }
+          stretch                      = TRUE
+          orientation                  = HORIZONTAL
+    }
+    image 
+    {
+          function                     = SLIDER
+          recolorable                  = TRUE
+          state                                = PRELIGHT
+          file                         = "Scrollbar/slider-horizontal-active.png"
+          border                       = { 5, 5, 5, 5 }
+          stretch                      = TRUE
+          orientation                  = HORIZONTAL
+    }
+    image 
+    {
+          function                     = SLIDER
+          recolorable                  = TRUE
+          state                                = NORMAL
+          file                         = "Scrollbar/slider-vertical.png"
+          border                       = { 5, 5, 5, 5 }
+          stretch                      = TRUE
+          orientation                  = VERTICAL
+    }
+    image 
+    {
+          function                     = SLIDER
+          recolorable                  = TRUE
+          state                                = ACTIVE
+          file                         = "Scrollbar/slider-vertical-active.png"
+          border                       = { 5, 5, 5, 5 }
+          stretch                      = TRUE
+          orientation                  = VERTICAL
+    }
+    image 
+    {
+          function                     = SLIDER
+          recolorable                  = TRUE
+          state                                = PRELIGHT
+          file                         = "Scrollbar/slider-vertical-active.png"
+          border                       = { 5, 5, 5, 5 }
+          stretch                      = TRUE
+          orientation                  = VERTICAL
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = NORMAL
+          file                         = "Scrollbar/arrow-up.png"
+          stretch                      = TRUE
+          arrow_direction              = UP
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = INSENSITIVE
+          file                         = "Scrollbar/arrow-up-inactive.png"
+          stretch                      = TRUE
+          arrow_direction              = UP
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = ACTIVE
+          file                         = "Scrollbar/arrow-up-active.png"
+          stretch                      = TRUE
+          arrow_direction              = UP
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = PRELIGHT
+          file                         = "Scrollbar/arrow-up-active.png"
+          stretch                      = TRUE
+          arrow_direction              = UP
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = NORMAL
+          file                         = "Scrollbar/arrow-down.png"
+          stretch                      = TRUE
+          arrow_direction              = DOWN
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = INSENSITIVE
+          file                         = "Scrollbar/arrow-down-inactive.png"
+          stretch                      = TRUE
+          arrow_direction              = DOWN
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = ACTIVE
+          file                         = "Scrollbar/arrow-down-active.png"
+          stretch                      = TRUE
+          arrow_direction              = DOWN
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = PRELIGHT
+          file                         = "Scrollbar/arrow-down-active.png"
+          stretch                      = TRUE
+          arrow_direction              = DOWN
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = NORMAL
+          file                         = "Scrollbar/arrow-left.png"
+          stretch                      = TRUE
+          arrow_direction              = LEFT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = INSENSITIVE
+          file                         = "Scrollbar/arrow-left-inactive.png"
+          stretch                      = TRUE
+          arrow_direction              = LEFT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = ACTIVE
+          file                         = "Scrollbar/arrow-left-active.png"
+          stretch                      = TRUE
+          arrow_direction              = LEFT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = PRELIGHT
+          file                         = "Scrollbar/arrow-left-active.png"
+          stretch                      = TRUE
+          arrow_direction              = LEFT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = NORMAL
+          file                         = "Scrollbar/arrow-right.png"
+          stretch                      = TRUE
+          arrow_direction              = RIGHT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = INSENSITIVE
+          file                         = "Scrollbar/arrow-right-inactive.png"
+          stretch                      = TRUE
+          arrow_direction              = RIGHT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = ACTIVE
+          file                         = "Scrollbar/arrow-right-active.png"
+          stretch                      = TRUE
+          arrow_direction              = RIGHT
+    }
+    image 
+    {
+          function                     = STEPPER
+          recolorable                  = TRUE
+          state                                = PRELIGHT
+          file                         = "Scrollbar/arrow-right-active.png"
+          stretch                      = TRUE
+          arrow_direction              = RIGHT
+    }
+  }
+}


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