From 8c6caefd9f88ae87d619b3b6f778bc91e06bad8e Mon Sep 17 00:00:00 2001 From: lufte Date: Wed, 18 Sep 2024 23:32:50 -0300 Subject: [PATCH] Set the text color determined by the style function Fixes: https://github.com/iced-rs/iced/issues/2557 --- widget/src/text_editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 1df97962a2..c8e7fa9ad6 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, ); }