summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 19:02:15 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 19:02:15 +0200
commit7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3 (patch)
treefb616dc39053d3249829c8a31976a1fd569153e5 /style/src/theme.rs
parent3e8f4cdd138d3f927ce8a3ea451cbfcca52af0d9 (diff)
downloadiced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.tar.gz
iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.tar.bz2
iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.zip
Rename `theme::Definition` to `application::StyleSheet`
Diffstat (limited to '')
-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();