Use application::StyleSheet text color in Themer

This commit is contained in:
Héctor Ramón Jiménez 2024-02-27 11:41:35 +01:00
parent 13e399ccba
commit b5235d7ff8
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 16 additions and 4 deletions

View file

@ -15,6 +15,7 @@ use crate::rule::{self, Rule};
use crate::runtime::Command;
use crate::scrollable::{self, Scrollable};
use crate::slider::{self, Slider};
use crate::style::application;
use crate::text::{self, Text};
use crate::text_editor::{self, TextEditor};
use crate::text_input::{self, TextInput};
@ -445,6 +446,7 @@ pub fn themer<'a, Message, Theme, Renderer>(
) -> Themer<'a, Message, Theme, Renderer>
where
Renderer: core::Renderer,
Theme: application::StyleSheet,
{
Themer::new(theme, content)
}