diff options
author | Marcel Hibbe <dev@mhibbe.de> | 2022-02-25 00:26:04 +0300 |
---|---|---|
committer | Marcel Hibbe <dev@mhibbe.de> | 2022-02-25 14:11:45 +0300 |
commit | b7b92eb623e1ff55d2df3470fbe2ba34de723942 (patch) | |
tree | 5090ec69d9e556122a4c6e69e819d85bbd2f6e8f /app | |
parent | 305ceedc75432710df5414b8ce81fd1621bcff55 (diff) |
fix textcolor for highlighted online status button
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt | 16 | ||||
-rw-r--r-- | app/src/main/res/values-night/colors.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/colors.xml | 1 |
3 files changed, 13 insertions, 5 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt index ff2ce74f2..1fd747a32 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt @@ -355,24 +355,25 @@ class SetStatusDialogFragment : } private fun visualizeStatus(statusType: StatusType) { + clearTopStatus() when (statusType) { StatusType.ONLINE -> { - clearTopStatus() binding.onlineStatus.setBackgroundColor(resources.getColor(R.color.colorPrimary)) + binding.onlineHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text_dark_background)) } StatusType.AWAY -> { - clearTopStatus() binding.awayStatus.setBackgroundColor(resources.getColor(R.color.colorPrimary)) + binding.awayHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text_dark_background)) } StatusType.DND -> { - clearTopStatus() binding.dndStatus.setBackgroundColor(resources.getColor(R.color.colorPrimary)) + binding.dndHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text_dark_background)) } StatusType.INVISIBLE -> { - clearTopStatus() binding.invisibleStatus.setBackgroundColor(resources.getColor(R.color.colorPrimary)) + binding.invisibleHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text_dark_background)) } - else -> clearTopStatus() + else -> Log.d(logTag, "unknown status") } } @@ -383,6 +384,11 @@ class SetStatusDialogFragment : binding.awayStatus.setBackgroundColor(grey) binding.dndStatus.setBackgroundColor(grey) binding.invisibleStatus.setBackgroundColor(grey) + + binding.onlineHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text)) + binding.awayHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text)) + binding.dndHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text)) + binding.invisibleHeadline.setTextColor(resources.getColor(R.color.high_emphasis_text)) } } diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 2e630736f..ee62ad4ff 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -38,6 +38,7 @@ <color name="high_emphasis_text">#deffffff</color> <color name="medium_emphasis_text">#99ffffff</color> <color name="low_emphasis_text">#61ffffff</color> + <color name="high_emphasis_text_inverse">#de000000</color> <color name="bg_default">#121212</color> <color name="bg_default_semitransparent">#99121212</color> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 0289c8679..e67e5c6fe 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -39,6 +39,7 @@ <color name="high_emphasis_text">#de000000</color> <color name="medium_emphasis_text">#99000000</color> <color name="low_emphasis_text">#61000000</color> + <color name="high_emphasis_text_inverse">#deffffff</color> <!-- general text colors for dark background --> <color name="high_emphasis_text_dark_background">#deffffff</color> |