feat(workspaces): support for using images in name_map

This commit is contained in:
Jake Stanger
2023-01-29 22:48:42 +00:00
parent 3cf9be89fd
commit b054c17d14
13 changed files with 132 additions and 64 deletions

View File

@@ -111,7 +111,7 @@ impl Module<gtk::Box> for FocusedModule {
let icon_theme = icon_theme.clone();
context.widget_rx.attach(None, move |(name, id)| {
if self.show_icon {
if let Err(err) = ImageProvider::parse(id, &icon_theme, self.icon_size)
if let Err(err) = ImageProvider::parse(&id, &icon_theme, self.icon_size)
.and_then(|image| image.load_into_image(icon.clone()))
{
error!("{err:?}");