Skip to content

Commit

Permalink
Fix clock font color if the theme is light
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Jun 12, 2022
1 parent 2f5cea8 commit 7052a6d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,15 @@ class AnalogClockDrawable(
val minuteHandLength = blend(lAmbience, minuteHandLengthMax, minuteHandLengthMin) +
minuteHandLengthOffset

textPaint.color = blendColor(
val finalContentColor = blendColor(
ratio = ambience,
a = Color.WHITE,
b = contentColor,
)
textPaint.color = finalContentColor
textPaint.textAlign = Paint.Align.RIGHT
textPaint.textSize = (radius - hourHandLength) / 2.3f
clockPaint.color = contentColor
clockPaint.color = finalContentColor
clockPaint.textAlign = Paint.Align.CENTER
clockPaint.letterSpacing = -0.10f
clockPaint.textSize = (radius - hourHandLengthMax) / 2f
Expand Down

0 comments on commit 7052a6d

Please sign in to comment.