theme: Impl Default for Theme. (#1061)
This commit is contained in:
parent
c9b5993472
commit
d139198c15
1 changed files with 6 additions and 0 deletions
|
|
@ -56,6 +56,12 @@ pub struct Theme {
|
|||
pub tile_shadow: bool,
|
||||
}
|
||||
|
||||
impl Default for Theme {
|
||||
fn default() -> Self {
|
||||
Self::from(ThemeColor::light())
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for Theme {
|
||||
type Target = ThemeColor;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue