From 08c71575558c4c231e2a136120cf90c9ec8fb932 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 9 Dec 2025 19:30:15 -0800 Subject: [PATCH] status-area: Use `.svg` from `IconThemePath` if present --- cosmic-applet-status-area/src/components/app.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cosmic-applet-status-area/src/components/app.rs b/cosmic-applet-status-area/src/components/app.rs index a36ba745..44373e0d 100644 --- a/cosmic-applet-status-area/src/components/app.rs +++ b/cosmic-applet-status-area/src/components/app.rs @@ -529,7 +529,11 @@ fn menu_icon_button<'a>( (_, name, Some(theme_path)) if name != "" => { let mut path = theme_path.to_owned(); // XXX right way to lookup icon in dir? - path.push(name.to_owned() + ".png"); + path.push(name.to_owned() + ".svg"); + if !path.exists() { + path.pop(); + path.push(name.to_owned() + ".png"); + } let icon = cosmic::widget::icon::from_path(path).symbolic(true); applet.icon_button_from_handle(icon) }