summaryrefslogtreecommitdiffstats
path: root/glutin
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-06-25 05:30:48 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-06-25 05:30:48 +0200
commitc807abdfd70c49b0c93868c12f142a2fb4c08036 (patch)
tree78bcf1bacecf51079a8d6d9fd001af3265c9b900 /glutin
parentfc13bb3d65c85cfad9f231c0776d3a45f4fbf480 (diff)
downloadiced-c807abdfd70c49b0c93868c12f142a2fb4c08036.tar.gz
iced-c807abdfd70c49b0c93868c12f142a2fb4c08036.tar.bz2
iced-c807abdfd70c49b0c93868c12f142a2fb4c08036.zip
Fix `Theme` not being refreshed in `iced_glutin`
Diffstat (limited to 'glutin')
-rw-r--r--glutin/src/application.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs
index 5fce58be..a222036a 100644
--- a/glutin/src/application.rs
+++ b/glutin/src/application.rs
@@ -212,7 +212,7 @@ async fn run_instance<A, E, C>(
let mut state = application::State::new(&application, context.window());
let mut viewport_version = state.viewport_version();
- let theme = application.theme();
+ let mut theme = application.theme();
let mut user_interface =
ManuallyDrop::new(application::build_user_interface(
@@ -278,6 +278,7 @@ async fn run_instance<A, E, C>(
let should_exit = application.should_exit();
+ theme = application.theme();
user_interface =
ManuallyDrop::new(application::build_user_interface(
&mut application,