From 582dbdf43ee42a09d33d5a1fe65d3b8adbdcc271 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Thu, 22 Jan 2026 18:27:30 +0100 Subject: feat!: cd selection && mv default primary --- src/selection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/selection.rs') diff --git a/src/selection.rs b/src/selection.rs index 0846fac..d11eb69 100644 --- a/src/selection.rs +++ b/src/selection.rs @@ -6,7 +6,7 @@ impl Catalog for Theme { type Class<'a> = StyleFn<'a, Self>; fn default<'a>() -> Self::Class<'a> { - Box::new(default) + Box::new(primary) } fn style(&self, class: &Self::Class<'_>) -> Style { @@ -14,9 +14,9 @@ impl Catalog for Theme { } } -pub fn default(theme: &Theme) -> Style { +pub fn primary(theme: &Theme) -> Style { Style { - color: None, + color: Some(theme.colors().primary.text), selection: theme.colors().primary.container, } } -- cgit v1.2.3