[longomatch] Theme the GtkScale widgets
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Theme the GtkScale widgets
- Date: Tue, 28 Oct 2014 09:48:50 +0000 (UTC)
commit 81af6959314f4a924677b73a41cf978f8968fb79
Author: Julien Moutte <julien fluendo com>
Date: Fri Oct 17 11:27:14 2014 +0200
Theme the GtkScale widgets
data/theme/gtk-2.0/gtkrc | 2 +
data/theme/gtk-2.0/range.rc | 98 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gtk-2.0/gtkrc b/data/theme/gtk-2.0/gtkrc
index 947e089..be9973e 100644
--- a/data/theme/gtk-2.0/gtkrc
+++ b/data/theme/gtk-2.0/gtkrc
@@ -129,6 +129,7 @@ include "checkbox.rc"
include "handles.rc"
include "radiobutton.rc"
include "entry.rc"
+include "range.rc"
class "GtkWidget" style "longomatch-default"
class "GtkEntry" style "longomatch-entry"
@@ -142,6 +143,7 @@ class "GtkRadioButton" style "longomatch-radiobutton"
class "GtkTreeView" style "longomatch-treeview"
class "GtkIconView" style "longomatch-treeview"
class "GtkTextView" style "longomatch-treeview"
+class "GtkScale" style "longomatch-range"
# Background for the menubar
class "GtkMenuBar" style "longomatch-menubar"
diff --git a/data/theme/gtk-2.0/range.rc b/data/theme/gtk-2.0/range.rc
new file mode 100644
index 0000000..3fab743
--- /dev/null
+++ b/data/theme/gtk-2.0/range.rc
@@ -0,0 +1,98 @@
+style "longomatch-range"
+{
+ GtkRange::trough-border = 0
+ GtkRange::trough-side-details = 1
+ GtkRange::activate-slider = TRUE
+ GtkRange::slider-width = 20
+ GtkScale::slider-length = 20
+ engine "pixmap"
+ {
+ image
+ {
+ function = BOX
+ recolorable = TRUE
+ detail = "trough-lower"
+ file = "Range/trough-horizontal-lower.png"
+ border = { 0, 0, 9, 9 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+ image
+ {
+ function = BOX
+ recolorable = TRUE
+ detail = "trough-lower"
+ file = "Range/trough-vertical-lower.png"
+ border = { 9, 9, 0, 0 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+ image
+ {
+ function = BOX
+ recolorable = TRUE
+ detail = "trough-upper"
+ file = "Range/trough-horizontal.png"
+ border = { 0, 0, 9, 9 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+ image
+ {
+ function = BOX
+ recolorable = TRUE
+ detail = "trough-upper"
+ file = "Range/trough-vertical.png"
+ border = { 9, 9, 0, 0 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+
+############### the sliders ###############
+
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Range/null.png"
+ border = { 0, 0, 0, 0 }
+ stretch = TRUE
+ overlay_file = "Range/slider.png"
+ overlay_stretch = FALSE
+ }
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Range/null.png"
+ border = { 0, 0, 0, 0 }
+ stretch = TRUE
+ overlay_file = "Range/slider-active.png"
+ overlay_stretch = FALSE
+ }
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Range/null.png"
+ border = { 0, 0, 0, 0 }
+ stretch = TRUE
+ overlay_file = "Range/slider-active.png"
+ overlay_stretch = FALSE
+ }
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Range/null.png"
+ border = { 0, 0, 0, 0 }
+ stretch = TRUE
+ overlay_file = "Range/slider-insensitive.png"
+ overlay_stretch = FALSE
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]