summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-09-19 06:59:27 +0200
committerLibravatar GitHub <noreply@github.com>2024-09-19 06:59:27 +0200
commit6bed89973d4e91f8fafbc7bf880af6495c80958a (patch)
treeccb5e2053b31e66479a5bbb0a4ba5fb0a75f20bc
parentddbb8445bf60de7169727721a5cb57048ded3d82 (diff)
parent8c6caefd9f88ae87d619b3b6f778bc91e06bad8e (diff)
downloadiced-6bed89973d4e91f8fafbc7bf880af6495c80958a.tar.gz
iced-6bed89973d4e91f8fafbc7bf880af6495c80958a.tar.bz2
iced-6bed89973d4e91f8fafbc7bf880af6495c80958a.zip
Merge pull request #2586 from lufte/master
Set the text color determined by the style function
-rw-r--r--widget/src/text_editor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs
index 59795318..a9322474 100644
--- a/widget/src/text_editor.rs
+++ b/widget/src/text_editor.rs
@@ -806,7 +806,7 @@ where
tree: &widget::Tree,
renderer: &mut Renderer,
theme: &Theme,
- defaults: &renderer::Style,
+ _defaults: &renderer::Style,
layout: Layout<'_>,
cursor: mouse::Cursor,
_viewport: &Rectangle,
@@ -875,7 +875,7 @@ where
renderer.fill_editor(
&internal.editor,
text_bounds.position(),
- defaults.text_color,
+ style.value,
text_bounds,
);
}