Implement serde ser/deser for Theme

This commit is contained in:
Kirill Chibisov 2023-01-31 12:14:15 +03:00 committed by GitHub
parent 483c1d40ae
commit 13613931cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1490,9 +1490,14 @@ pub enum Fullscreen {
Borderless(Option<MonitorHandle>),
}
/// The theme variant to use.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum Theme {
/// Use the light variant.
Light,
/// Use the dark variant.
Dark,
}