Skip to content

Commit

Permalink
Move more text colors into constants
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Jul 13, 2024
1 parent 2bdc541 commit fda39f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/action_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use crate::{
typing::{
TypingTarget, TypingTargetBundle, TypingTargetSettings, TypingTargetText, TypingTargets,
},
ui_color::{self, TRANSPARENT_BACKGROUND},
Action, AfterUpdate, Currency, TaipoState, TowerSelection,
ui_color, Action, AfterUpdate, Currency, TaipoState, TowerSelection,
};

pub struct ActionPanelPlugin;
Expand Down Expand Up @@ -75,7 +74,7 @@ fn setup_action_panel(
top: Val::Px(0.),
..default()
},
background_color: TRANSPARENT_BACKGROUND.into(),
background_color: ui_color::TRANSPARENT_BACKGROUND.into(),
..default()
},
ActionPanelContainer,
Expand Down Expand Up @@ -210,7 +209,7 @@ fn spawn_action_panel_item(
height: Val::Px(16.0),
..default()
},
background_color: TRANSPARENT_BACKGROUND.into(),
background_color: ui_color::TRANSPARENT_BACKGROUND.into(),
..default()
},
ActionPanelItemPriceContainer,
Expand All @@ -237,7 +236,7 @@ fn spawn_action_panel_item(
TextStyle {
font: font_handles.jptext.clone(),
font_size: 16.0, // 16px in this font is just not quite 16px is it?
color: Color::WHITE,
color: ui_color::NORMAL_TEXT.into(),
},
),
..default()
Expand Down

0 comments on commit fda39f7

Please sign in to comment.