update: use applet style button for panel button

This commit is contained in:
Ashley Wulber 2024-01-19 17:21:13 -05:00 committed by Ashley Wulber
parent f8a6fd7ab6
commit 70646bcc92

View file

@ -52,9 +52,8 @@ impl cosmic::Application for Button {
}
fn view(&self) -> cosmic::Element<Msg> {
// 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()
}