We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e87ab8d commit c22d3d7Copy full SHA for c22d3d7
src/platform_impl/linux/event_loop.rs
@@ -956,6 +956,15 @@ impl<T: 'static> EventLoop<T> {
956
WindowRequest::SetTheme(theme) => {
957
if let Some(settings) = Settings::default() {
958
settings.set_gtk_application_prefer_dark_theme(theme == Some(Theme::Dark));
959
+ if let Err(e) = event_tx.send(Event::WindowEvent {
960
+ window_id: RootWindowId(id),
961
+ event: WindowEvent::ThemeChanged(theme.unwrap_or_default()),
962
+ }) {
963
+ log::warn!(
964
+ "Failed to send window theme changed event to event channel: {}",
965
+ e
966
+ );
967
+ }
968
}
969
970
_ => unreachable!(),
0 commit comments