mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Unpin & upgrade winit to 0.30.5 (#4939)
This updates winit to 0.30.5. https://github.com/emilk/egui/pull/4849 Had to pin the version to 0.30.2, as a Winit patch changed the behavior of selecting a theme. Winit 0.30.5 reverts this, so we could stick with `window.theme()`, but the newly added `ActiveEventLoop::system_theme` is more like what egui wants anyway, as individual windows can have theme overrides. Also bump `smithay-clipboard` to prevent some now duplicate dependencies.
This commit is contained in:
@@ -1114,7 +1114,7 @@ impl GlutinWindowContext {
|
||||
viewport_id,
|
||||
event_loop,
|
||||
Some(window.scale_factor() as f32),
|
||||
window.theme(),
|
||||
event_loop.system_theme(),
|
||||
self.max_texture_side,
|
||||
)
|
||||
});
|
||||
|
||||
@@ -241,7 +241,7 @@ impl WgpuWinitApp {
|
||||
ViewportId::ROOT,
|
||||
event_loop,
|
||||
Some(window.scale_factor() as f32),
|
||||
window.theme(),
|
||||
event_loop.system_theme(),
|
||||
painter.max_texture_side(),
|
||||
);
|
||||
|
||||
@@ -869,7 +869,7 @@ impl Viewport {
|
||||
viewport_id,
|
||||
event_loop,
|
||||
Some(window.scale_factor() as f32),
|
||||
window.theme(),
|
||||
event_loop.system_theme(),
|
||||
painter.max_texture_side(),
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user