diff options
| author | 2022-06-29 10:51:01 +0200 | |
|---|---|---|
| committer | 2022-06-29 10:51:01 +0200 | |
| commit | 1dd1a2f97fc747e15e12b5188dad6c41b0d052ea (patch) | |
| tree | ba2b24b9c8dec02b9232068dee299ca27a4823ba /examples/pure/todos | |
| parent | c807abdfd70c49b0c93868c12f142a2fb4c08036 (diff) | |
| download | iced-1dd1a2f97fc747e15e12b5188dad6c41b0d052ea.tar.gz iced-1dd1a2f97fc747e15e12b5188dad6c41b0d052ea.tar.bz2 iced-1dd1a2f97fc747e15e12b5188dad6c41b0d052ea.zip | |
Introduce `StyleSheet` for `Text` widget
Diffstat (limited to 'examples/pure/todos')
| -rw-r--r-- | examples/pure/todos/src/main.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/examples/pure/todos/src/main.rs b/examples/pure/todos/src/main.rs index ea772def..723386ad 100644 --- a/examples/pure/todos/src/main.rs +++ b/examples/pure/todos/src/main.rs @@ -6,7 +6,7 @@ use iced::pure::{  };  use iced::theme::{self, Theme};  use iced::window; -use iced::{Command, Font, Length, Settings}; +use iced::{Color, Command, Font, Length, Settings};  use serde::{Deserialize, Serialize};  pub fn main() -> iced::Result { @@ -155,7 +155,7 @@ impl Application for Todos {                  let title = text("todos")                      .width(Length::Fill)                      .size(100) -                    .color([0.5, 0.5, 0.5]) +                    .style(Color::from([0.5, 0.5, 0.5]))                      .horizontal_alignment(alignment::Horizontal::Center);                  let input = text_input( @@ -406,7 +406,7 @@ fn empty_message(message: &str) -> Element<'_, Message> {              .width(Length::Fill)              .size(25)              .horizontal_alignment(alignment::Horizontal::Center) -            .color([0.7, 0.7, 0.7]), +            .style(Color::from([0.7, 0.7, 0.7])),      )      .width(Length::Fill)      .height(Length::Units(200)) | 
