mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 14:50:04 -04:00
Implement serde ser/deser for Theme
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user