From bed168a765cabeb8efacd6b9c941b354122cd999 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 8 Jul 2012 19:40:43 -0400 Subject: Add RTL spinbuttons --- themes/Adwaita/gtk-2.0/Makefile.am | 4 + .../gtk-2.0/Spin/down-background-disable-rtl.png | Bin 0 -> 337 bytes .../Adwaita/gtk-2.0/Spin/down-background-rtl.png | Bin 0 -> 302 bytes .../gtk-2.0/Spin/up-background-disable-rtl.png | Bin 0 -> 314 bytes themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png | Bin 0 -> 286 bytes themes/Adwaita/gtk-2.0/gtkrc | 112 ++++++++++++++++++++- 6 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png create mode 100644 themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png create mode 100644 themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png create mode 100644 themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png diff --git a/themes/Adwaita/gtk-2.0/Makefile.am b/themes/Adwaita/gtk-2.0/Makefile.am index 30b7cf75..47d9261e 100644 --- a/themes/Adwaita/gtk-2.0/Makefile.am +++ b/themes/Adwaita/gtk-2.0/Makefile.am @@ -76,6 +76,10 @@ asset_data = Spin/up-background.png \ Spin/down-background-disable.png \ Spin/up-background-disable.png \ + Spin/down-background-rtl.png \ + Spin/up-background-rtl.png \ + Spin/down-background-disable-rtl.png \ + Spin/up-background-disable-rtl.png \ Tabs/notebook-gap-horiz.png \ Tabs/notebook-gap-vert.png \ Tabs/notebook.png \ diff --git a/themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png b/themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png new file mode 100644 index 00000000..d0051cb8 Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/down-background-disable-rtl.png differ diff --git a/themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png b/themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png new file mode 100644 index 00000000..9fff5f46 Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/down-background-rtl.png differ diff --git a/themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png b/themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png new file mode 100644 index 00000000..19c0e485 Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/up-background-disable-rtl.png differ diff --git a/themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png b/themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png new file mode 100644 index 00000000..3064d029 Binary files /dev/null and b/themes/Adwaita/gtk-2.0/Spin/up-background-rtl.png differ diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc index 0a8f7a0c..a57a2522 100755 --- a/themes/Adwaita/gtk-2.0/gtkrc +++ b/themes/Adwaita/gtk-2.0/gtkrc @@ -883,7 +883,7 @@ engine "pixmap" function = ARROW } - # Spin-Up + # Spin-Up LTR image { function = BOX @@ -894,6 +894,7 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-up.png" overlay_stretch = FALSE + direction = LTR } image { @@ -905,6 +906,7 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-up-prelight.png" overlay_stretch = FALSE + direction = LTR } image { @@ -916,6 +918,7 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-up-disable.png" overlay_stretch = FALSE + direction = LTR } image { @@ -927,9 +930,60 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-up-prelight.png" overlay_stretch = FALSE + direction = LTR } - # Spin-Down + # Spin-Up RTL + image + { + function = BOX + state = NORMAL + detail = "spinbutton_up" + file = "Spin/up-background-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-up.png" + overlay_stretch = FALSE + direction = RTL + } + image + { + function = BOX + state = PRELIGHT + detail = "spinbutton_up" + file = "Spin/up-background-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-up-prelight.png" + overlay_stretch = FALSE + direction = RTL + } + image + { + function = BOX + state = INSENSITIVE + detail = "spinbutton_up" + file = "Spin/up-background-disable-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-up-disable.png" + overlay_stretch = FALSE + direction = RTL + } + image + { + function = BOX + state = ACTIVE + detail = "spinbutton_up" + file = "Spin/up-background-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-up-prelight.png" + overlay_stretch = FALSE + direction = RTL + } + + # Spin-Down LTR image { function = BOX @@ -940,6 +994,7 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-down.png" overlay_stretch = FALSE + direction = LTR } image { @@ -951,6 +1006,7 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-down-prelight.png" overlay_stretch = FALSE + direction = LTR } image { @@ -962,6 +1018,7 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-down-disable.png" overlay_stretch = FALSE + direction = LTR } image { @@ -973,6 +1030,57 @@ engine "pixmap" stretch = TRUE overlay_file = "Spin/arrow-down-prelight.png" overlay_stretch = FALSE + direction = LTR + } + + # Spin-Down RTL + image + { + function = BOX + state = NORMAL + detail = "spinbutton_down" + file = "Spin/down-background-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-down.png" + overlay_stretch = FALSE + direction = RTL + } + image + { + function = BOX + state = PRELIGHT + detail = "spinbutton_down" + file = "Spin/down-background-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-down-prelight.png" + overlay_stretch = FALSE + direction = RTL + } + image + { + function = BOX + state = INSENSITIVE + detail = "spinbutton_down" + file = "Spin/down-background-disable-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-down-disable.png" + overlay_stretch = FALSE + direction = RTL + } + image + { + function = BOX + state = ACTIVE + detail = "spinbutton_down" + file = "Spin/down-background-rtl.png" + border = { 5, 5, 5, 5 } + stretch = TRUE + overlay_file = "Spin/arrow-down-prelight.png" + overlay_stretch = FALSE + direction = RTL } } } -- cgit v1.2.1