Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed May 12, 2023
1 parent d3e9ab5 commit 5f96043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bevy_window/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ pub struct WindowMoved {
pub position: IVec2,
}

/// An event that is sent when system window theme has changed.
/// An event that is sent when system changed window theme.
///
/// It is only sent when [`Window::preferred_theme`](crate::window::Window::preferred_theme) is `None`.
#[derive(Debug, Clone, PartialEq, Eq, Reflect, FromReflect)]
#[reflect(Debug, PartialEq)]
#[cfg_attr(
Expand Down
1 change: 1 addition & 0 deletions examples/window/window_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ fn main() {
fit_canvas_to_parent: true,
// Tells wasm not to override default event handling, like F5, Ctrl+R etc.
prevent_default_event_handling: false,
preferred_theme: Some(WindowTheme::Dark),
..default()
}),
..default()
Expand Down

0 comments on commit 5f96043

Please sign in to comment.