summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-11-09 18:24:14 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-09 18:24:14 +0100
commitaf6f7945a905a04ae0335fdc295678ff95eff5f9 (patch)
treed44ac78a6200feb90e0359fa9ff62b24c0c64738 /winit
parent8102f96f12e6cb22dd2a23accea2c70490c8c532 (diff)
parent925b78a75ddf8e37e70babe4dae78a9970a181f0 (diff)
downloadiced-af6f7945a905a04ae0335fdc295678ff95eff5f9.tar.gz
iced-af6f7945a905a04ae0335fdc295678ff95eff5f9.tar.bz2
iced-af6f7945a905a04ae0335fdc295678ff95eff5f9.zip
Merge pull request #1519 from iced-rs/customizable-theme
Built-in `Theme` customization
Diffstat (limited to '')
-rw-r--r--winit/src/application/state.rs4
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());
}
}