mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 05:41: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>),
|
||||
}
|
||||
|
||||
/// 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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue