From f229e06d83ef944482218bd72dc8bf64e54ea431 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 27 Oct 2022 18:16:58 -0600 Subject: [PATCH] Use new Text widget for all text --- examples/editor-libcosmic/src/main.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/editor-libcosmic/src/main.rs b/examples/editor-libcosmic/src/main.rs index 481539d..1c395c9 100644 --- a/examples/editor-libcosmic/src/main.rs +++ b/examples/editor-libcosmic/src/main.rs @@ -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)