theme: Impl Default for Theme. (#1061)

This commit is contained in:
Jason Lee 2025-07-15 16:35:12 +08:00 committed by GitHub
parent c9b5993472
commit d139198c15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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