Skip to content

Commit

Permalink
Fix missing foreground color set
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Jun 7, 2024
1 parent 65f5e62 commit b14a6ba
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ private data class ComputedStyle(
// so all the changes will be applied to skia paint.
val paint = _foregroundPaint.asFrameworkPaint()
paint.reset()
_foregroundPaint.color = textForegroundStyle.color
_foregroundPaint.setBrush(textForegroundStyle.brush, brushSize, textForegroundStyle.alpha)
_foregroundPaint.setDrawStyle(drawStyle)
_foregroundPaint.blendMode = blendMode
Expand Down

0 comments on commit b14a6ba

Please sign in to comment.