Let a Theme control the text_color of an application

This commit is contained in:
Héctor Ramón Jiménez 2022-05-26 01:10:26 +02:00
parent 3a820b45f3
commit 822a3cd04f
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 49 additions and 19 deletions

View file

@ -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();