Use Style struct pattern instead of trait for all widgets
This commit is contained in:
parent
8a63774b24
commit
34e7c6593a
25 changed files with 466 additions and 282 deletions
|
|
@ -4,7 +4,6 @@ pub mod palette;
|
|||
pub use palette::Palette;
|
||||
|
||||
use crate::application;
|
||||
use crate::core::widget::text;
|
||||
|
||||
use std::fmt;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -265,5 +264,3 @@ impl<T: Fn(&Theme) -> application::Appearance> application::StyleSheet for T {
|
|||
(self)(style)
|
||||
}
|
||||
}
|
||||
|
||||
impl text::StyleSheet for Theme {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue