diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 4ce07aa..782a15e 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -1,5 +1,7 @@ use std::path::PathBuf; +use iced::theme::Text; +use iced::widget::text; use iced::widget::text_input; use iced::widget::Column; use iced::{Application, Command, Subscription}; @@ -166,6 +168,7 @@ impl Application for State { .on_input(Message::TextUpdate), ); } + c = c.push(text("TEXTBOX")); //temp c.into() } diff --git a/src/gui/theme/colors.rs b/src/gui/theme/colors.rs new file mode 100644 index 0000000..7f9d049 --- /dev/null +++ b/src/gui/theme/colors.rs @@ -0,0 +1,5 @@ +use iced::{color, Color, Background}; + +pub struct Colors { + +} \ No newline at end of file diff --git a/src/gui/theme.rs b/src/gui/theme/mod.rs similarity index 95% rename from src/gui/theme.rs rename to src/gui/theme/mod.rs index 648136b..0a14c5e 100644 --- a/src/gui/theme.rs +++ b/src/gui/theme/mod.rs @@ -20,7 +20,7 @@ impl application::StyleSheet for Theme { fn appearance(&self, _style: &Self::Style) -> application::Appearance { application::Appearance { background_color: color!(255, 255, 255), - text_color: color!(150, 150, 150), + text_color: color!(0, 0, 0), } } } @@ -69,7 +69,7 @@ impl text_input::StyleSheet for Theme { fn active(&self, style: &Self::Style) -> text_input::Appearance { text_input::Appearance { - background: Background::Color(color!(0, 0, 0)), + background: Background::Color(color!(255, 255, 255)), border_radius: 4.0.into(), border_width: 0.0, border_color: Color::TRANSPARENT,