From 0296c704cbdeb24fcb35ac90d6e7013f7d7ede5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Thu, 19 Mar 2020 20:02:50 +0100 Subject: [PATCH] [UI] Update dialog NoDisplay theme. --- app/src/main/AndroidManifest.xml | 4 +- .../szczodrzynski/edziennik/utils/Themes.kt | 7 +- app/src/main/res/values/styles.xml | 94 ++++++++++--------- 3 files changed, 51 insertions(+), 54 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ce47405c..21c13afb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -62,7 +62,7 @@ android:configChanges="orientation|keyboardHidden" android:excludeFromRecents="true" android:noHistory="true" - android:theme="@style/AppTheme.NoDisplay"> + android:theme="@style/AppTheme.Dark.NoDisplay"> @@ -84,7 +84,7 @@ android:configChanges="orientation|keyboardHidden" android:excludeFromRecents="true" android:noHistory="true" - android:theme="@style/AppTheme.NoDisplay" /> + android:theme="@style/AppTheme.Dark.NoDisplay" /> diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/utils/Themes.kt b/app/src/main/java/pl/szczodrzynski/edziennik/utils/Themes.kt index e0dbb553..e2189f71 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/utils/Themes.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/utils/Themes.kt @@ -1,14 +1,9 @@ package pl.szczodrzynski.edziennik.utils import android.content.Context -import android.graphics.Color - import androidx.annotation.StringRes import androidx.annotation.StyleRes -import androidx.core.graphics.ColorUtils - import pl.szczodrzynski.edziennik.R - import pl.szczodrzynski.navlib.getColorFromAttr object Themes { @@ -49,7 +44,7 @@ object Themes { val appThemeNoDisplay: Int - get() = if (theme.isDark) R.style.AppThemeDark_NoDisplay else R.style.AppTheme_NoDisplay + get() = if (theme.isDark) R.style.AppTheme_Dark_NoDisplay else R.style.AppTheme_Light_NoDisplay val appTheme: Int diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 52f26f20..9983ecf0 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -10,63 +10,65 @@ @drawable/dead_background - -