Skip to content

Commit

Permalink
Implement serde ser/deser for Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov authored Jan 31, 2023
1 parent 483c1d4 commit 1361393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 1361393

Please sign in to comment.