diff options
author | 2022-11-09 04:05:31 +0100 | |
---|---|---|
committer | 2022-11-09 04:05:31 +0100 | |
commit | 18fb74f20092b2703a90afdb01f39754445998da (patch) | |
tree | f178b11be114717059c36248c45f8a005dbe5a38 /winit | |
parent | 8102f96f12e6cb22dd2a23accea2c70490c8c532 (diff) | |
download | iced-18fb74f20092b2703a90afdb01f39754445998da.tar.gz iced-18fb74f20092b2703a90afdb01f39754445998da.tar.bz2 iced-18fb74f20092b2703a90afdb01f39754445998da.zip |
Introduce `Custom` variants for every style in the built-in `Theme`
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/application/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winit/src/application/state.rs b/winit/src/application/state.rs index 9c539548..8d6a1df1 100644 --- a/winit/src/application/state.rs +++ b/winit/src/application/state.rs @@ -32,7 +32,7 @@ where let title = application.title(); let scale_factor = application.scale_factor(); let theme = application.theme(); - let appearance = theme.appearance(application.style()); + let appearance = theme.appearance(&application.style()); let viewport = { let physical_size = window.inner_size(); @@ -210,6 +210,6 @@ where // Update theme and appearance self.theme = application.theme(); - self.appearance = self.theme.appearance(application.style()); + self.appearance = self.theme.appearance(&application.style()); } } |