Skip to main content

aethermap_gui/theme/
mod.rs

1pub mod palette;
2pub mod styles;
3
4pub use palette::*;
5pub use styles::*;
6
7use iced::theme::Palette;
8use iced::{Color, Theme};
9
10pub fn aether_dark() -> Theme {
11    Theme::custom(
12        String::from("Aether Dark"),
13        Palette {
14            background: BG_BASE,
15            text: TEXT_PRIMARY,
16            primary: ACCENT,
17            success: SUCCESS,
18            danger: DANGER,
19        },
20    )
21}
22
23pub fn aether_light() -> Theme {
24    Theme::custom(
25        String::from("Aether Light"),
26        Palette {
27            background: Color::from_rgb(0.95, 0.95, 0.95),
28            text: Color::BLACK,
29            primary: ACCENT,
30            success: SUCCESS,
31            danger: DANGER,
32        },
33    )
34}