summaryrefslogtreecommitdiff
path: root/src/theme/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme/text.rs')
-rw-r--r--src/theme/text.rs50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/theme/text.rs b/src/theme/text.rs
deleted file mode 100644
index 9cbd056..0000000
--- a/src/theme/text.rs
+++ /dev/null
@@ -1,50 +0,0 @@
-#![allow(dead_code)]
-use iced::widget::text::{Catalog, Style, StyleFn};
-
-use super::OtherTheme;
-
-impl Catalog for OtherTheme {
- type Class<'a> = StyleFn<'a, Self>;
-
- fn default<'a>() -> Self::Class<'a> {
- Box::new(none)
- }
-
- fn style(&self, class: &Self::Class<'_>) -> Style {
- class(self)
- }
-}
-
-pub fn none(_: &OtherTheme) -> Style {
- Style { color: None }
-}
-
-pub fn primary(theme: &OtherTheme) -> Style {
- Style {
- color: Some(theme.colorscheme.primary.on_primary),
- }
-}
-
-pub fn secondary(theme: &OtherTheme) -> Style {
- Style {
- color: Some(theme.colorscheme.secondary.on_secondary),
- }
-}
-
-pub fn tertiary(theme: &OtherTheme) -> Style {
- Style {
- color: Some(theme.colorscheme.tertiary.on_tertiary),
- }
-}
-
-pub fn error(theme: &OtherTheme) -> Style {
- Style {
- color: Some(theme.colorscheme.error.on_error),
- }
-}
-
-pub fn surface(theme: &OtherTheme) -> Style {
- Style {
- color: Some(theme.colorscheme.surface.on_surface),
- }
-}