Skip to content

Commit

Permalink
Merge pull request #2586 from lufte/master
Browse files Browse the repository at this point in the history
Set the text color determined by the style function
  • Loading branch information
hecrj authored Sep 19, 2024
2 parents ddbb844 + 8c6caef commit 6bed899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -875,7 +875,7 @@ where
renderer.fill_editor(
&internal.editor,
text_bounds.position(),
defaults.text_color,
style.value,
text_bounds,
);
}
Expand Down

0 comments on commit 6bed899

Please sign in to comment.