Update to latest libcosmic

This commit is contained in:
Jeremy Soller 2022-12-06 08:49:32 -07:00
parent 05d97f0f3a
commit d22c0f43d4
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -17,7 +17,7 @@ use cosmic::{
}, },
}, },
settings, settings,
theme::Theme, theme::{self, Theme},
widget::{ widget::{
button, button,
toggler, toggler,
@ -254,8 +254,12 @@ impl Application for Window {
let content: Element<_> = column![ let content: Element<_> = column![
row![ row![
button!("Open").on_press(Message::Open), button(theme::Button::Secondary)
button!("Save").on_press(Message::Save), .text("Open")
.on_press(Message::Open),
button(theme::Button::Secondary)
.text("Save")
.on_press(Message::Save),
horizontal_space(Length::Fill), horizontal_space(Length::Fill),
text("Bold:"), text("Bold:"),
toggler(None, self.attrs.weight == cosmic_text::Weight::BOLD, Message::Bold), toggler(None, self.attrs.weight == cosmic_text::Weight::BOLD, Message::Bold),