Skip to content

Commit

Permalink
color module
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Jul 16, 2023
1 parent ffcca80 commit c1a6e79
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/gui/mod.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -166,6 +168,7 @@ impl Application for State {
.on_input(Message::TextUpdate),
);
}
c = c.push(text("TEXTBOX")); //temp

c.into()
}
Expand Down
5 changes: 5 additions & 0 deletions src/gui/theme/colors.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use iced::{color, Color, Background};

pub struct Colors {

}
4 changes: 2 additions & 2 deletions src/gui/theme.rs → src/gui/theme/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c1a6e79

Please sign in to comment.