fix(icon): default to prefer_svg if symbolic
This commit is contained in:
parent
37ae722320
commit
6439507aa2
1 changed files with 3 additions and 2 deletions
|
|
@ -41,13 +41,14 @@ pub struct Named {
|
|||
impl Named {
|
||||
pub fn new(name: impl Into<Arc<str>>) -> Self {
|
||||
let name = name.into();
|
||||
let symbolic = name.ends_with("-symbolic");
|
||||
Self {
|
||||
symbolic: name.ends_with("-symbolic"),
|
||||
symbolic,
|
||||
name,
|
||||
fallback: Some(IconFallback::Default),
|
||||
size: None,
|
||||
scale: None,
|
||||
prefer_svg: false,
|
||||
prefer_svg: symbolic,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue