From 13613931cfb571ed8af0238d75462893b25cacdf Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 31 Jan 2023 12:14:15 +0300 Subject: [PATCH] Implement `serde` ser/deser for `Theme` --- src/window.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/window.rs b/src/window.rs index 1a6a9be3f5..ba07ce7344 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1490,9 +1490,14 @@ pub enum Fullscreen { Borderless(Option), } +/// 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, }