Implement palette method for Theme
This commit is contained in:
parent
26d49be1b2
commit
4f8ed7d6ee
1 changed files with 4 additions and 0 deletions
|
|
@ -275,6 +275,10 @@ impl application::StyleSheet for Theme {
|
|||
Application::Custom(custom) => custom.appearance(self),
|
||||
}
|
||||
}
|
||||
|
||||
fn palette(&self) -> Option<Palette> {
|
||||
Some(self.palette())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Fn(&Theme) -> application::Appearance> application::StyleSheet for T {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue