diff --git a/src/constants.rs b/src/constants.rs deleted file mode 100644 index 747a08d..0000000 --- a/src/constants.rs +++ /dev/null @@ -1,12 +0,0 @@ -//! Program constants & defaults - -use bevy::prelude::*; - -#[derive(Debug, Reflect, Resource)] -struct ConfigDefaults {} - -impl FromWorld for ConfigDefaults { - fn from_world(world: &mut World) -> Self { - todo!() - } -} diff --git a/src/main.rs b/src/main.rs index 097ca83..55de9a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use bevy_inspector_egui::{bevy_egui::EguiPlugin, quick::WorldInspectorPlugin}; mod assets; mod card; -mod constants; +mod resources; mod widgets; fn main() { diff --git a/src/resources.rs b/src/resources.rs new file mode 100644 index 0000000..bbadbb1 --- /dev/null +++ b/src/resources.rs @@ -0,0 +1,34 @@ +//! Program constants & defaults + +use bevy::{color::palettes::css::*, prelude::*}; + +#[derive(Debug, Reflect, Resource)] +pub struct UiTheme { + // TODO: Panes + + // Colors for the "Big Red Buttons" (the main actions of the machines) + // normal + brb_bg: Color, + brb_border: Color, + // hover + brb_hover_bg: Color, + brb_hover_border: Color, + // pressed + brb_pressed_bg: Color, + brb_pressed_border: Color, + +} + +impl FromWorld for UiTheme { + fn from_world(world: &mut World) -> Self { + Self { + brb_bg: RED.into(), + brb_border: DARK_RED.into(), + brb_hover_bg: PINK.into(), + brb_hover_border: RED.into(), + brb_pressed_bg: GREEN.into(), + brb_pressed_border: DARK_GREEN.into(), + } + } +} +