summaryrefslogtreecommitdiffstats
path: root/winit/src/multi_window/state.rs
diff options
context:
space:
mode:
authorLibravatar Bingus <shankern@protonmail.com>2023-03-15 18:20:38 -0700
committerLibravatar Bingus <shankern@protonmail.com>2023-03-15 18:20:38 -0700
commit41836dd80d0534608e7aedfbf2319c540a23de1a (patch)
tree45bc8bfb126bf2674c456f61cb95945d8205a8a3 /winit/src/multi_window/state.rs
parentce4b2c93d9802dfb8cd3fc9033d76651d4bbc75b (diff)
downloadiced-41836dd80d0534608e7aedfbf2319c540a23de1a.tar.gz
iced-41836dd80d0534608e7aedfbf2319c540a23de1a.tar.bz2
iced-41836dd80d0534608e7aedfbf2319c540a23de1a.zip
Added per-window theme support.
Diffstat (limited to 'winit/src/multi_window/state.rs')
-rw-r--r--winit/src/multi_window/state.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/winit/src/multi_window/state.rs b/winit/src/multi_window/state.rs
index d0e442d0..54a114ad 100644
--- a/winit/src/multi_window/state.rs
+++ b/winit/src/multi_window/state.rs
@@ -37,7 +37,7 @@ where
) -> Self {
let title = application.title(window_id);
let scale_factor = application.scale_factor(window_id);
- let theme = application.theme();
+ let theme = application.theme(window_id);
let appearance = theme.appearance(&application.style());
let viewport = {
@@ -212,7 +212,7 @@ where
}
// Update theme and appearance
- self.theme = application.theme();
+ self.theme = application.theme(window_id);
self.appearance = self.theme.appearance(&application.style());
}
}