diff options
author | 2024-09-18 23:32:50 -0300 | |
---|---|---|
committer | 2024-09-18 23:34:45 -0300 | |
commit | 8c6caefd9f88ae87d619b3b6f778bc91e06bad8e (patch) | |
tree | 5f817fc9b491ea1b37b9e960a2126d55c9185edd | |
parent | a61c84b7e09a53ed7977692c4d7d7d5c589aed5c (diff) | |
download | iced-8c6caefd9f88ae87d619b3b6f778bc91e06bad8e.tar.gz iced-8c6caefd9f88ae87d619b3b6f778bc91e06bad8e.tar.bz2 iced-8c6caefd9f88ae87d619b3b6f778bc91e06bad8e.zip |
Set the text color determined by the style function
Fixes: https://github.com/iced-rs/iced/issues/2557
-rw-r--r-- | widget/src/text_editor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 1df97962..c8e7fa9a 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -742,7 +742,7 @@ where tree: &widget::Tree, renderer: &mut Renderer, theme: &Theme, - defaults: &renderer::Style, + _defaults: &renderer::Style, layout: Layout<'_>, cursor: mouse::Cursor, _viewport: &Rectangle, @@ -811,7 +811,7 @@ where renderer.fill_editor( &internal.editor, text_bounds.position(), - defaults.text_color, + style.value, text_bounds, ); } |