1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -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:
Arthur Brussee
2024-08-09 08:15:14 +01:00
committed by GitHub
parent 2dac4a4fc6
commit 1f6ae49a5f
7 changed files with 25 additions and 29 deletions

View File

@@ -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,
)
});

View File

@@ -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(),
));