mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Implement serde
ser/deser for Theme
This commit is contained in:
parent
483c1d40ae
commit
13613931cf
|
@ -1490,9 +1490,14 @@ pub enum Fullscreen {
|
||||||
Borderless(Option<MonitorHandle>),
|
Borderless(Option<MonitorHandle>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The theme variant to use.
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub enum Theme {
|
pub enum Theme {
|
||||||
|
/// Use the light variant.
|
||||||
Light,
|
Light,
|
||||||
|
|
||||||
|
/// Use the dark variant.
|
||||||
Dark,
|
Dark,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue