summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/theme.rs')
-rw-r--r--style/src/theme.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs
index cf939824..9cfbd1d5 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -2,6 +2,7 @@ mod palette;
pub use self::palette::Palette;
+use crate::application;
use crate::button;
use crate::slider;
@@ -35,13 +36,7 @@ impl Default for Theme {
}
}
-pub trait Definition {
- fn background_color(&self) -> Color;
-
- fn text_color(&self) -> Color;
-}
-
-impl Definition for Theme {
+impl application::StyleSheet for Theme {
fn background_color(&self) -> Color {
let palette = self.extended_palette();