This commit is contained in:
Antonio Scandurra 2023-11-03 18:55:20 +01:00
parent d3b02c4de4
commit 2a672e2126
4 changed files with 722 additions and 355 deletions

View file

@ -58,6 +58,12 @@ pub struct ThemeVariant {
}
impl ThemeVariant {
/// Returns the [`ThemeColors`] for the theme.
#[inline(always)]
pub fn players(&self) -> &PlayerColors {
&self.styles.player
}
/// Returns the [`ThemeColors`] for the theme.
#[inline(always)]
pub fn colors(&self) -> &ThemeColors {