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 {
|
impl Named {
|
||||||
pub fn new(name: impl Into<Arc<str>>) -> Self {
|
pub fn new(name: impl Into<Arc<str>>) -> Self {
|
||||||
let name = name.into();
|
let name = name.into();
|
||||||
|
let symbolic = name.ends_with("-symbolic");
|
||||||
Self {
|
Self {
|
||||||
symbolic: name.ends_with("-symbolic"),
|
symbolic,
|
||||||
name,
|
name,
|
||||||
fallback: Some(IconFallback::Default),
|
fallback: Some(IconFallback::Default),
|
||||||
size: None,
|
size: None,
|
||||||
scale: None,
|
scale: None,
|
||||||
prefer_svg: false,
|
prefer_svg: symbolic,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue