mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +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 {
|
||||
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 {
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user