Skip to content

Commit

Permalink
update: use applet style button for panel button
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Jan 19, 2024
1 parent 7292822 commit ca4921a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cosmic-panel-button/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit ca4921a

Please sign in to comment.