summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 01:10:26 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 01:10:26 +0200
commit822a3cd04f9edeb887d85164b0b3e556c3fde6bb (patch)
treea9696674d844af5892f46daef6d36407fb076383 /winit/src/application.rs
parent3a820b45f336398c48f8bedf7b8c4b8af876efff (diff)
downloadiced-822a3cd04f9edeb887d85164b0b3e556c3fde6bb.tar.gz
iced-822a3cd04f9edeb887d85164b0b3e556c3fde6bb.tar.bz2
iced-822a3cd04f9edeb887d85164b0b3e556c3fde6bb.zip
Let a `Theme` control the `text_color` of an application
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r--winit/src/application.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 55fd9e73..12279bbb 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -504,7 +504,10 @@ pub fn build_user_interface<'a, A: Application>(
renderer: &mut A::Renderer,
size: Size,
debug: &mut Debug,
-) -> UserInterface<'a, A::Message, A::Renderer> {
+) -> UserInterface<'a, A::Message, A::Renderer>
+where
+ <A::Renderer as crate::Renderer>::Theme: theme::Definition,
+{
debug.view_started();
let view = application.view();
debug.view_finished();