From 78cd0eff09189fd08dd17945a05e19e198153793 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sat, 1 Feb 2025 08:48:47 +0200 Subject: [PATCH] Fix reader info bar icon color --- .../kotlin/org/koitharu/kotatsu/reader/ui/ReaderInfoBarView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderInfoBarView.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderInfoBarView.kt index 98456bbc4..486f1a50b 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderInfoBarView.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderInfoBarView.kt @@ -92,6 +92,7 @@ class ReaderInfoBarView @JvmOverloads constructor( insetLeftFallback = if (isRtl) insetEnd else insetStart insetRightFallback = if (isRtl) insetStart else insetEnd insetTopFallback = minOf(insetLeftFallback, insetRightFallback) + batteryIcon?.setTintList(colorText) } override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { @@ -206,6 +207,7 @@ class ReaderInfoBarView @JvmOverloads constructor( colorBackground = (context.getThemeColorStateList( if (isBlackOnWhite != isDarkTheme) materialR.attr.colorSurface else materialR.attr.colorSurfaceInverse, ) ?: ColorStateList.valueOf(if (isBlackOnWhite) Color.WHITE else Color.BLACK)).withAlpha(ALPHA_BG) + batteryIcon?.setTintList(colorText) drawableStateChanged() }