commit 4929bfd48ead9565835f5b6450d4e4f497c06529
parent a26ef315facdec4c027256632707ce206ef807b4
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Sat, 20 May 2023 00:33:32 +0200
fix(appearance): theme compatibility
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/ui/menus/ViewAppearanceHelper.kt b/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/ui/menus/ViewAppearanceHelper.kt
@@ -18,7 +18,7 @@ object ViewAppearanceHelper {
fun applyTheme(viewModel: View, view: TextView) {
//remove the shadow
view.setBackgroundColor(0x00000000)
- view.setTextColor(Color.parseColor("#000000"))
+ view.setTextColor(viewModel.resources.getColor(android.R.color.white, null))
view.setShadowLayer(0f, 0f, 0f, 0)
view.outlineProvider = null
view.gravity = Gravity.LEFT or Gravity.CENTER_VERTICAL