Skip to content

Commit

Permalink
Fix complications being black on black
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Jun 11, 2022
1 parent 3cc02e7 commit 7437594
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,13 @@ class AnalogClockDrawable(
val minuteHandLength = blend(lAmbience, minuteHandLengthMax, minuteHandLengthMin) +
minuteHandLengthOffset

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

0 comments on commit 7437594

Please sign in to comment.