From 97a1f9051009c6bfd9675c951e0f577da9e5d013 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Sun, 20 Mar 2022 16:13:42 +0100 Subject: [PATCH] fix for dark mode minor aesthetic bug - not included numberpicker --- .../activities/ProfileHelperActivity.kt | 1 - .../setupwizard/SetupWizardActivity.kt | 2 -- .../activities/PrefImportListActivity.kt | 2 -- core/src/main/res/values-night/styles.xml | 32 ++++++++++++++++--- core/src/main/res/values/styles.xml | 9 +++--- 5 files changed, 33 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt b/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt index 891228aa26..3fc64254a2 100644 --- a/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt +++ b/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt @@ -68,7 +68,6 @@ class ProfileHelperActivity : NoSplashAppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - setTheme(R.style.AppTheme) binding = ActivityProfilehelperBinding.inflate(layoutInflater) setContentView(binding.root) diff --git a/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt b/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt index 4e9d5539b2..090b9ae07d 100644 --- a/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt +++ b/app/src/main/java/info/nightscout/androidaps/setupwizard/SetupWizardActivity.kt @@ -50,8 +50,6 @@ class SetupWizardActivity : NoSplashAppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - // temp while switch is not public - setTheme(R.style.AppTheme) update(applicationContext) binding = ActivitySetupwizardBinding.inflate(layoutInflater) setContentView(binding.root) diff --git a/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt b/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt index 7bf0c54f6b..74be8377e4 100644 --- a/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt +++ b/core/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/activities/PrefImportListActivity.kt @@ -32,8 +32,6 @@ class PrefImportListActivity : DaggerAppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - // temp while switch is not public - setTheme(R.style.AppTheme) binding = MaintenanceImportListActivityBinding.inflate(layoutInflater) val view = binding.root setContentView(view) diff --git a/core/src/main/res/values-night/styles.xml b/core/src/main/res/values-night/styles.xml index 006421aae9..534c57bd62 100644 --- a/core/src/main/res/values-night/styles.xml +++ b/core/src/main/res/values-night/styles.xml @@ -113,12 +113,11 @@ @@ -193,6 +192,11 @@ 15sp + + + + + + diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 83c0829709..6247018e00 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -108,16 +108,17 @@ @style/DialogTheme @style/DialogTheme @style/DialogTheme + false + true