diff --git a/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt b/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt index 18ab2383..b8dd507a 100644 --- a/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt +++ b/app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/infrastructure/activity/ConfigurationActivity.kt @@ -54,8 +54,8 @@ class ConfigurationActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { setTheme( when (applicationContext.isDarkThemeEnabled()) { - true -> androidx.appcompat.R.style.Theme_AppCompat - else -> androidx.appcompat.R.style.Theme_AppCompat_DayNight + true -> R.style.Theme_AppCompat_DarkTheme + else -> R.style.Theme_AppCompat_LightTheme } ) diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..e0a48f53 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + +