mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Adwaita: Add symbolic png assets
And use them as fallback for the svg ones. This lets us avoid a hard dependency on librsvg - the theme will work without svg support.
This commit is contained in:
parent
e54549502e
commit
051b6071b7
@ -2291,14 +2291,18 @@ radio {
|
||||
|
||||
check {
|
||||
border-radius: 3px;
|
||||
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/check-symbolic.svg")); }
|
||||
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.svg")); }
|
||||
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/check-symbolic.svg")),
|
||||
-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"))); }
|
||||
}
|
||||
|
||||
radio {
|
||||
border-radius: 100%;
|
||||
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/bullet-symbolic.svg")); }
|
||||
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.svg")); }
|
||||
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/bullet-symbolic.svg")),
|
||||
-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"))); }
|
||||
}
|
||||
|
||||
|
||||
|
BIN
gtk/theme/Adwaita/assets/bullet-symbolic.symbolic.png
Normal file
BIN
gtk/theme/Adwaita/assets/bullet-symbolic.symbolic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 147 B |
BIN
gtk/theme/Adwaita/assets/check-symbolic.symbolic.png
Normal file
BIN
gtk/theme/Adwaita/assets/check-symbolic.symbolic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 193 B |
BIN
gtk/theme/Adwaita/assets/dash-symbolic.symbolic.png
Normal file
BIN
gtk/theme/Adwaita/assets/dash-symbolic.symbolic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 130 B |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user