diff --git a/app/phone/src/main/java/dev/jdtech/jellyfin/BaseApplication.kt b/app/phone/src/main/java/dev/jdtech/jellyfin/BaseApplication.kt
index 7e3b5a32..721e8f5e 100644
--- a/app/phone/src/main/java/dev/jdtech/jellyfin/BaseApplication.kt
+++ b/app/phone/src/main/java/dev/jdtech/jellyfin/BaseApplication.kt
@@ -10,9 +10,11 @@ import coil.decode.SvgDecoder
import coil.disk.DiskCache
import coil.request.CachePolicy
import com.google.android.material.color.DynamicColors
+import com.google.android.material.color.DynamicColorsOptions
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
import javax.inject.Inject
+import dev.jdtech.jellyfin.core.R as CoreR
@HiltAndroidApp
class BaseApplication : Application(), Configuration.Provider, ImageLoaderFactory {
@@ -40,7 +42,12 @@ class BaseApplication : Application(), Configuration.Provider, ImageLoaderFactor
"dark" -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
}
- if (appPreferences.dynamicColors) DynamicColors.applyToActivitiesIfAvailable(this)
+ if (appPreferences.dynamicColors) {
+ val dynamicColorsOptions = DynamicColorsOptions.Builder()
+ .setThemeOverlay(CoreR.style.ThemeOverlay_Findroid_DynamicColors)
+ .build()
+ DynamicColors.applyToActivitiesIfAvailable(this, dynamicColorsOptions)
+ }
}
override fun newImageLoader(): ImageLoader {
diff --git a/app/phone/src/main/java/dev/jdtech/jellyfin/MainActivity.kt b/app/phone/src/main/java/dev/jdtech/jellyfin/MainActivity.kt
index 8a10177e..163bc80c 100644
--- a/app/phone/src/main/java/dev/jdtech/jellyfin/MainActivity.kt
+++ b/app/phone/src/main/java/dev/jdtech/jellyfin/MainActivity.kt
@@ -149,7 +149,7 @@ class MainActivity : AppCompatActivity() {
private fun applyTheme() {
if (appPreferences.amoledTheme) {
- setTheme(CoreR.style.Theme_FindroidAMOLED)
+ setTheme(CoreR.style.ThemeOverlay_Findroid_Amoled)
}
}
}
diff --git a/core/src/main/res/values-night/themes.xml b/core/src/main/res/values-night/themes.xml
index a465edae..86f1b081 100644
--- a/core/src/main/res/values-night/themes.xml
+++ b/core/src/main/res/values-night/themes.xml
@@ -17,9 +17,12 @@
- @color/neutral_900
-
\ No newline at end of file
diff --git a/core/src/main/res/values/themes.xml b/core/src/main/res/values/themes.xml
index 515efe0f..3f947db6 100644
--- a/core/src/main/res/values/themes.xml
+++ b/core/src/main/res/values/themes.xml
@@ -24,6 +24,9 @@
- @color/neutral_50
- @color/neutral_100
+ - ?attr/colorSurface
+ - ?attr/colorSurface
+ - ?attr/colorSurface
- @color/red
@@ -53,6 +56,10 @@
- @style/ThemeOverlay.Findroid.Preference
+
+
- @string/theme_system
- @string/theme_light