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> {
|
fn view(&self) -> cosmic::Element<Msg> {
|
||||||
// TODO icon?
|
cosmic::widget::button(text(&self.desktop.name).size(14.0))
|
||||||
cosmic::widget::button(text(&self.desktop.name))
|
.style(cosmic::theme::Button::AppletIcon)
|
||||||
.style(cosmic::theme::Button::Text)
|
|
||||||
.on_press(Msg::Press)
|
.on_press(Msg::Press)
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue