From 26cb52883bcd7f11ca18312df05e84e146d7f9b9 Mon Sep 17 00:00:00 2001 From: Philoul Date: Fri, 19 Feb 2021 21:25:55 +0100 Subject: [PATCH 1/3] Change Selected item background color --- .../nightscout/androidaps/activities/ProfileHelperActivity.kt | 2 +- app/src/main/res/values/colors.xml | 2 +- 2 files changed, 2 insertions(+), 2 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 8a9d37dc6e..542fdf95ac 100644 --- a/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt +++ b/app/src/main/java/info/nightscout/androidaps/activities/ProfileHelperActivity.kt @@ -290,7 +290,7 @@ class ProfileHelperActivity : NoSplashAppCompatActivity() { } private fun setBackgroundColorOnSelected(tab: Int) { - binding.menu1.setBackgroundColor(resourceHelper.gc(if (tab == 1) R.color.defaultbackground else R.color.tabBgColorSelected)) + binding.menu1.setBackgroundColor(resourceHelper.gc(if (tab == 1) R.color.defaultbackground else R.color.tempbasal)) binding.menu2.setBackgroundColor(resourceHelper.gc(if (tab == 0) R.color.defaultbackground else R.color.examinedProfile)) } } diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index c45b97d50c..c03d4b1ce8 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -10,7 +10,7 @@ #FFFFFF00 #FFFF00FF #FFFF00 - #FF33B5E5 + #FF666666 #FF0000 #7484E2 #2800FF00 From 026c3efdede1af1b402cc714a6246aa11e3f8a16 Mon Sep 17 00:00:00 2001 From: Philoul Date: Fri, 19 Feb 2021 22:30:54 +0100 Subject: [PATCH 2/3] Local Profil Select dia tab on opening --- .../androidaps/plugins/profile/local/LocalProfileFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt index 063c4e65c4..8f667affaa 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt @@ -82,6 +82,7 @@ class LocalProfileFragment : DaggerFragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) // activate DIA tab + processVisibilityOnClick(binding.diaPlaceholder) binding.diaPlaceholder.visibility = View.VISIBLE // setup listeners binding.diaTab.setOnClickListener { From 1a78588011d5089fdd2cc4f0143393e7b0e7236a Mon Sep 17 00:00:00 2001 From: Philoul Date: Fri, 19 Feb 2021 23:14:15 +0100 Subject: [PATCH 3/3] Fix LocalProfile I apologize --- .../androidaps/plugins/profile/local/LocalProfileFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt index 8f667affaa..368df27e4b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt @@ -82,7 +82,7 @@ class LocalProfileFragment : DaggerFragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) // activate DIA tab - processVisibilityOnClick(binding.diaPlaceholder) + processVisibilityOnClick(binding.diaTab) binding.diaPlaceholder.visibility = View.VISIBLE // setup listeners binding.diaTab.setOnClickListener {