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.
This commit is contained in:
Matthias Clasen 2014-06-22 14:12:29 -04:00
parent 11e394b7b5
commit fe6cd7f2a5
3 changed files with 10 additions and 0 deletions

View File

@ -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'); }
}

View File

@ -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 {

View File

@ -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 {