mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
Adwaita: Use scaled icons for checks and bullets
This gives us crip rendering on hidpi screens.
This commit is contained in:
parent
1dbc50f3f8
commit
99d3d31314
@ -2745,18 +2745,22 @@ radio {
|
|||||||
check {
|
check {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
||||||
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/check-symbolic.symbolic.png")); }
|
&:checked { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/check-symbolic.symbolic.png")),
|
||||||
|
-gtk-recolor(url("assets/check@2-symbolic.symbolic.png"))); }
|
||||||
|
|
||||||
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.symbolic.png")); }
|
&:indeterminate { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/dash-symbolic.symbolic.png")),
|
||||||
|
-gtk-recolor(url("assets/dash@2-symbolic.symbolic.png"))); }
|
||||||
}
|
}
|
||||||
|
|
||||||
%radio,
|
%radio,
|
||||||
radio {
|
radio {
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
|
||||||
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/bullet-symbolic.symbolic.png")); }
|
&:checked { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/bullet-symbolic.symbolic.png")),
|
||||||
|
-gtk-recolor(url("assets/bullet@2-symbolic.symbolic.png"))); }
|
||||||
|
|
||||||
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.symbolic.png")); }
|
&:indeterminate { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/dash-symbolic.symbolic.png")),
|
||||||
|
-gtk-recolor(url("assets/dash@2-symbolic.symbolic.png"))); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// ANIMATION:
|
// ANIMATION:
|
||||||
|
Loading…
Reference in New Issue
Block a user