summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parentce4b2c93d9802dfb8cd3fc9033d76651d4bbc75b (diff)
downloadiced-41836dd80d0534608e7aedfbf2319c540a23de1a.tar.gz
iced-41836dd80d0534608e7aedfbf2319c540a23de1a.tar.bz2
iced-41836dd80d0534608e7aedfbf2319c540a23de1a.zip
Added per-window theme support.
Diffstat (limited to 'src')
-rw-r--r--src/multi_window/application.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/multi_window/application.rs b/src/multi_window/application.rs
index 1fb4bcd4..9974128c 100644
--- a/src/multi_window/application.rs
+++ b/src/multi_window/application.rs
@@ -107,7 +107,8 @@ pub trait Application: Sized {
/// Returns the current [`Theme`] of the [`Application`].
///
/// [`Theme`]: Self::Theme
- fn theme(&self) -> Self::Theme {
+ #[allow(unused_variables)]
+ fn theme(&self, window: window::Id) -> Self::Theme {
Self::Theme::default()
}
@@ -229,8 +230,8 @@ where
self.0.title(window)
}
- fn theme(&self) -> A::Theme {
- self.0.theme()
+ fn theme(&self, window: window::Id) -> A::Theme {
+ self.0.theme(window)
}
fn style(&self) -> <A::Theme as StyleSheet>::Style {