From 84f0ab87fbbace142e8cb19c7e3d14fa6eece86a Mon Sep 17 00:00:00 2001 From: Jarno Rankinen Date: Mon, 28 Aug 2023 22:11:39 +0300 Subject: [PATCH] Use black theme instead of dark when set to follow system theme --- .../src/main/java/im/vector/app/features/themes/ThemeUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt b/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt index 3c902d162e..77a8890476 100644 --- a/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt +++ b/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt @@ -133,7 +133,7 @@ object ThemeUtils { */ fun setActivityTheme(activity: Activity, otherThemes: ActivityOtherThemes) { when (getApplicationTheme(activity)) { - SYSTEM_THEME_VALUE -> if (isSystemDarkTheme(activity.resources)) activity.setTheme(otherThemes.dark) + SYSTEM_THEME_VALUE -> if (isSystemDarkTheme(activity.resources)) activity.setTheme(otherThemes.black) THEME_DARK_VALUE -> activity.setTheme(otherThemes.dark) THEME_BLACK_VALUE -> activity.setTheme(otherThemes.black) } @@ -202,7 +202,7 @@ object ThemeUtils { @StyleRes private fun themeToRes(context: Context, theme: String): Int = when (theme) { - SYSTEM_THEME_VALUE -> if (isSystemDarkTheme(context.resources)) R.style.Theme_Vector_Dark else R.style.Theme_Vector_Light + SYSTEM_THEME_VALUE -> if (isSystemDarkTheme(context.resources)) R.style.Theme_Vector_Black else R.style.Theme_Vector_Light THEME_DARK_VALUE -> R.style.Theme_Vector_Dark THEME_BLACK_VALUE -> R.style.Theme_Vector_Black else -> R.style.Theme_Vector_Light