[gtk+] Adwaita: Use rtl variants of pan-end when needed



commit fe6cd7f2a56d19b43269d8734f67d1ba315f488a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 22 14:12:29 2014 -0400

    Adwaita: Use rtl variants of pan-end when needed
    
    The -gtk-icontheme() function not have any automatism for
    symbolic or rtl variants built-in, instead, we expect the theme
    to use selectors to provide the right icon for each situation.

 gtk/resources/theme/Adwaita/_common.scss           |    2 ++
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |    4 ++++
 gtk/resources/theme/Adwaita/gtk-contained.css      |    4 ++++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 3d619a9..573208f 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -752,6 +752,7 @@ column-header {
     }
     //submenu indicators
     &.arrow { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
+    &.arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
   }
 }
 
@@ -1627,6 +1628,7 @@ GtkScrolledWindow {
 
 GtkExpander {
   -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
+  &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
   &:hover { color: lighten($fg_color,30%); } //only lightens the arrow
   &:active { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
 }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 2bf41bd..c907edb 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -933,6 +933,8 @@ column-header .button, column-header .button:hover, column-header .button:active
       background-color: #2c2c2c; }
     .menu .menuitem.arrow {
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+    .menu .menuitem.arrow:dir(rtl) {
+      -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
 
 /***************
  * Popovers   *
@@ -2170,6 +2172,8 @@ GtkScrolledWindow GtkViewport.frame {
  *************/
 GtkExpander {
   -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+  GtkExpander:dir(rtl) {
+    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
   GtkExpander:hover {
     color: white; }
   GtkExpander:active {
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 8e819d6..073348e 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -933,6 +933,8 @@ column-header .button, column-header .button:hover, column-header .button:active
       background-color: #fcfcfc; }
     .menu .menuitem.arrow {
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+    .menu .menuitem.arrow:dir(rtl) {
+      -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
 
 /***************
  * Popovers   *
@@ -2168,6 +2170,8 @@ GtkScrolledWindow GtkViewport.frame {
  *************/
 GtkExpander {
   -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+  GtkExpander:dir(rtl) {
+    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
   GtkExpander:hover {
     color: #748489; }
   GtkExpander:active {


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