forked from AuroraMiddleware/gtk
Use the .symbolic.png assets in Adwaita
Using an image() fallback from svg to png doesn't make too much sense, since the svg is always used (unless librsvg is not present), while the png icon is faster and cheaper to load and thus preferable.
This commit is contained in:
parent
ae61220c9f
commit
4f0cf475a5
@ -2653,22 +2653,18 @@ radio {
|
||||
check {
|
||||
border-radius: 3px;
|
||||
|
||||
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/check-symbolic.svg")),
|
||||
-gtk-recolor(url("assets/check-symbolic.symbolic.png"))); }
|
||||
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/check-symbolic.symbolic.png")); }
|
||||
|
||||
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/dash-symbolic.svg")),
|
||||
-gtk-recolor(url("assets/dash-symbolic.symbolic.png"))); }
|
||||
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.symbolic.png")); }
|
||||
}
|
||||
|
||||
%radio,
|
||||
radio {
|
||||
border-radius: 100%;
|
||||
|
||||
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/bullet-symbolic.svg")),
|
||||
-gtk-recolor(url("assets/bullet-symbolic.symbolic.png"))); }
|
||||
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/bullet-symbolic.symbolic.png")); }
|
||||
|
||||
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/dash-symbolic.svg")),
|
||||
-gtk-recolor(url("assets/dash-symbolic.symbolic.png"))); }
|
||||
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.symbolic.png")); }
|
||||
}
|
||||
|
||||
// ANIMATION:
|
||||
|
Loading…
Reference in New Issue
Block a user