Use new Text widget for all text
This commit is contained in:
parent
a4a4eb7783
commit
f229e06d83
1 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue