mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-04 20:21:02 +02:00
feat(custom): image widget
This commit is contained in:
parent
5772711192
commit
393800aaa2
4 changed files with 64 additions and 14 deletions
|
@ -68,7 +68,7 @@ impl<'a> ImageProvider<'a> {
|
|||
None if PathBuf::from(input_name).exists() => {
|
||||
Ok(ImageLocation::Local(PathBuf::from(input_name)))
|
||||
}
|
||||
None => match get_desktop_icon_name(&input_name) {
|
||||
None => match get_desktop_icon_name(input_name) {
|
||||
Some(input) => Self::get_location(input, theme, size),
|
||||
None => Err(Report::msg("Unknown image type")),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue