forked from AuroraMiddleware/gtk
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:
parent
11e394b7b5
commit
fe6cd7f2a5
@ -752,6 +752,7 @@ column-header {
|
|||||||
}
|
}
|
||||||
//submenu indicators
|
//submenu indicators
|
||||||
&.arrow { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
|
&.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 {
|
GtkExpander {
|
||||||
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
-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
|
&:hover { color: lighten($fg_color,30%); } //only lightens the arrow
|
||||||
&:active { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
&:active { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||||
}
|
}
|
||||||
|
@ -933,6 +933,8 @@ column-header .button, column-header .button:hover, column-header .button:active
|
|||||||
background-color: #2c2c2c; }
|
background-color: #2c2c2c; }
|
||||||
.menu .menuitem.arrow {
|
.menu .menuitem.arrow {
|
||||||
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||||
|
.menu .menuitem.arrow:dir(rtl) {
|
||||||
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
|
||||||
|
|
||||||
/***************
|
/***************
|
||||||
* Popovers *
|
* Popovers *
|
||||||
@ -2170,6 +2172,8 @@ GtkScrolledWindow GtkViewport.frame {
|
|||||||
*************/
|
*************/
|
||||||
GtkExpander {
|
GtkExpander {
|
||||||
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||||
|
GtkExpander:dir(rtl) {
|
||||||
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
|
||||||
GtkExpander:hover {
|
GtkExpander:hover {
|
||||||
color: white; }
|
color: white; }
|
||||||
GtkExpander:active {
|
GtkExpander:active {
|
||||||
|
@ -933,6 +933,8 @@ column-header .button, column-header .button:hover, column-header .button:active
|
|||||||
background-color: #fcfcfc; }
|
background-color: #fcfcfc; }
|
||||||
.menu .menuitem.arrow {
|
.menu .menuitem.arrow {
|
||||||
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||||
|
.menu .menuitem.arrow:dir(rtl) {
|
||||||
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
|
||||||
|
|
||||||
/***************
|
/***************
|
||||||
* Popovers *
|
* Popovers *
|
||||||
@ -2168,6 +2170,8 @@ GtkScrolledWindow GtkViewport.frame {
|
|||||||
*************/
|
*************/
|
||||||
GtkExpander {
|
GtkExpander {
|
||||||
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||||
|
GtkExpander:dir(rtl) {
|
||||||
|
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
|
||||||
GtkExpander:hover {
|
GtkExpander:hover {
|
||||||
color: #748489; }
|
color: #748489; }
|
||||||
GtkExpander:active {
|
GtkExpander:active {
|
||||||
|
Loading…
Reference in New Issue
Block a user