aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/selection.rs6
1 files changed, 3 insertions, 3 deletions
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,
}
}