2
0
Fork 0
mirror of https://github.com/bevyengine/bevy synced 2025-03-04 07:17:26 +00:00
bevy/examples/window
张林伟 b72b15465d
Support to set window theme and expose system window theme changed event ()
# Objective

- Fixes https://github.com/bevyengine/bevy/issues/8586.

## Solution

- Add `preferred_theme` field to `Window` and set it when window
creation
- Add `window_theme` field to `InternalWindowState` to store current
window theme
- Expose winit `WindowThemeChanged` event

---------

Co-authored-by: hate <15314665+hate@users.noreply.github.com>
Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: François <mockersf@gmail.com>
2023-06-05 21:04:22 +00:00
..
clear_color.rs Schedule-First: the new and improved add_systems () 2023-03-18 01:45:34 +00:00
low_power.rs add a default font () 2023-04-21 22:30:18 +00:00
multiple_windows.rs Schedule-First: the new and improved add_systems () 2023-03-18 01:45:34 +00:00
scale_factor_override.rs Flatten UI Style properties that use Size + remove Size () 2023-05-16 01:36:32 +00:00
screenshot.rs Screenshots in wasm () 2023-04-28 19:37:11 +00:00
transparent_window.rs Schedule-First: the new and improved add_systems () 2023-03-18 01:45:34 +00:00
window_resizing.rs fix new clippy lints before they reach stable () 2023-05-29 07:23:50 +00:00
window_settings.rs Support to set window theme and expose system window theme changed event () 2023-06-05 21:04:22 +00:00