update: use applet style button for panel button
This commit is contained in:
parent
f8a6fd7ab6
commit
70646bcc92
1 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue