From 70646bcc92aa695e931c24456d2fa76ff299e12b Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Fri, 19 Jan 2024 17:21:13 -0500 Subject: [PATCH] update: use applet style button for panel button --- cosmic-panel-button/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cosmic-panel-button/src/main.rs b/cosmic-panel-button/src/main.rs index 7d732ace..24016af0 100644 --- a/cosmic-panel-button/src/main.rs +++ b/cosmic-panel-button/src/main.rs @@ -52,9 +52,8 @@ impl cosmic::Application for Button { } fn view(&self) -> cosmic::Element { - // TODO icon? - cosmic::widget::button(text(&self.desktop.name)) - .style(cosmic::theme::Button::Text) + cosmic::widget::button(text(&self.desktop.name).size(14.0)) + .style(cosmic::theme::Button::AppletIcon) .on_press(Msg::Press) .into() }