Use new Text widget for all text

This commit is contained in:
Jeremy Soller 2022-10-27 18:16:58 -06:00
parent a4a4eb7783
commit f229e06d83
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -5,7 +5,6 @@ use cosmic::{
self,
Alignment,
Application,
Color,
Command,
Element,
Length,
@ -249,15 +248,15 @@ impl Application for Window {
button!("Open").on_press(Message::Open),
button!("Save").on_press(Message::Save),
horizontal_space(Length::Fill),
text("Bold:"),
text_new("Bold:"),
toggler(None, self.attrs.weight == cosmic_text::Weight::BOLD, Message::Bold),
text("Italic:"),
text_new("Italic:"),
toggler(None, self.attrs.style == cosmic_text::Style::Italic, Message::Italic),
text("Monospaced:"),
text_new("Monospaced:"),
toggler(None, self.attrs.monospaced, Message::Monospaced),
text_new("Theme:"),
theme_picker,
text("Font Size:"),
text_new("Font Size:"),
font_size_picker,
]
.align_items(Alignment::Center)