Implement palette method for Theme

This commit is contained in:
Héctor Ramón Jiménez 2024-02-27 15:41:20 +01:00
parent 26d49be1b2
commit 4f8ed7d6ee
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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 {