bevy/crates/bevy_window/src
张林伟 b72b15465d
Support to set window theme and expose system window theme changed event (#8593)
# 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
..
cursor.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
event.rs Support to set window theme and expose system window theme changed event (#8593) 2023-06-05 21:04:22 +00:00
lib.rs Support to set window theme and expose system window theme changed event (#8593) 2023-06-05 21:04:22 +00:00
raw_handle.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
system.rs Non-breaking change* from UK spellings to US (#8291) 2023-04-08 16:22:46 +00:00
window.rs Support to set window theme and expose system window theme changed event (#8593) 2023-06-05 21:04:22 +00:00