Skip to content

Commit

Permalink
Make dark and light style fields pub
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Sep 11, 2024
1 parent 1666ec0 commit 722dbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/memory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ impl FocusDirection {
pub struct Options {
/// The default style for new [`Ui`](crate::Ui):s in dark mode.
#[cfg_attr(feature = "serde", serde(skip))]
pub(crate) dark_style: std::sync::Arc<Style>,
pub dark_style: std::sync::Arc<Style>,

/// The default style for new [`Ui`](crate::Ui):s in light mode.
#[cfg_attr(feature = "serde", serde(skip))]
pub(crate) light_style: std::sync::Arc<Style>,
pub light_style: std::sync::Arc<Style>,

/// A preference for how to select between dark and light [`crate::Context::style`]
/// as the active style used by all subsequent windows, panels etc.
Expand Down

0 comments on commit 722dbc5

Please sign in to comment.