Skip to content

Commit

Permalink
theme init
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Jul 12, 2023
1 parent e012b59 commit 812bde3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ use std::path::PathBuf;

use iced::widget::text_input;
use iced::widget::Column;
use iced::{theme, Application, Command, Element, Subscription};
use iced::{Application, Command, Element, Subscription};

mod elements;
mod file_dialog;
pub use theme::Theme;

pub use elements::menu_bar;

Expand Down
15 changes: 15 additions & 0 deletions src/gui/theme.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use iced::widget::button;
use iced::{application, Color, color, Theme};

impl application::StyleSheet for Theme {
type Style = Button;

fn active(&self, style: &Self::Style) -> Appearance {
match style {
Button::Primary => button::Appearance {
background: color!(0x28, 0x28, 0x28).into(),
..Default::default()
}
}
}
}

0 comments on commit 812bde3

Please sign in to comment.