diff --git a/src/core/theme.rs b/src/core/theme.rs index 5a625eb..924fc64 100644 --- a/src/core/theme.rs +++ b/src/core/theme.rs @@ -19,6 +19,7 @@ pub(super) fn plugin(app: &mut App) { ThemeColorFor, ThemeColorFor, ThemeColorFor, + ThemeColorFor, ThemeColorForText, )>(); } @@ -160,3 +161,9 @@ impl ColorMut for BorderColor { &mut self.0 } } + +impl ColorMut for Outline { + fn color_mut(&mut self) -> &mut Color { + &mut self.color + } +} diff --git a/src/game/card.rs b/src/game/card.rs index 6e8d1b0..a601cf2 100644 --- a/src/game/card.rs +++ b/src/game/card.rs @@ -124,6 +124,11 @@ impl EntityCommand for CardBackground { image: UiImage::new(self.texture), ..default() }, + Outline { + width: Vw(0.4), + ..default() + }, + ThemeColor::CardBorder.target::(), atlas, ));