From b819f9c372ca0f47fe07a9bec6fb1a07291b64f5 Mon Sep 17 00:00:00 2001 From: Hafiz Date: Wed, 15 Jun 2022 13:14:57 -0400 Subject: [PATCH] update hp/exp/mp text colors --- .../habitrpg/wearos/habitica/ui/activities/StatsActivity.kt | 6 +++--- wearos/src/main/res/layout/stat_value_layout.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wearos/src/main/java/com/habitrpg/wearos/habitica/ui/activities/StatsActivity.kt b/wearos/src/main/java/com/habitrpg/wearos/habitica/ui/activities/StatsActivity.kt index bd667b660..df28f5c9c 100644 --- a/wearos/src/main/java/com/habitrpg/wearos/habitica/ui/activities/StatsActivity.kt +++ b/wearos/src/main/java/com/habitrpg/wearos/habitica/ui/activities/StatsActivity.kt @@ -52,7 +52,7 @@ class StatsActivity : BaseActivity() { binding.mpBar.visibility = View.GONE } else { binding.mpBar.ovalSize = ((height / 2) - 46) - binding.mpBar.setBarColor(R.color.mp_bar_color) + binding.mpBar.setBarColor(R.color.mpColor) binding.mpBar.setPercentageValues(stats.mp?.toInt() ?: 0, stats.maxMP ?: 0) binding.mpBar.animateProgress() } @@ -61,8 +61,8 @@ class StatsActivity : BaseActivity() { } private fun updateStatViews(stats: Stats) { - binding.hpStatValue.setStatValue(stats.maxHealth ?: 0, stats.hp?.toInt() ?: 0, HabiticaIconsHelper.imageOfHeartLightBg(), R.color.hpColor) - binding.expStatValue.setStatValue(stats.toNextLevel ?: 0, stats.exp?.toInt() ?: 0, HabiticaIconsHelper.imageOfExperience(), R.color.xpColor) + binding.hpStatValue.setStatValue(stats.maxHealth ?: 0, stats.hp?.toInt() ?: 0, HabiticaIconsHelper.imageOfHeartLightBg(), R.color.hp_bar_color) + binding.expStatValue.setStatValue(stats.toNextLevel ?: 0, stats.exp?.toInt() ?: 0, HabiticaIconsHelper.imageOfExperience(), R.color.exp_bar_color) if (stats.lvl ?: 0 < 10) { binding.mpStatValue.visibility = View.GONE } else { diff --git a/wearos/src/main/res/layout/stat_value_layout.xml b/wearos/src/main/res/layout/stat_value_layout.xml index 5e0301b2b..4f875e4cb 100644 --- a/wearos/src/main/res/layout/stat_value_layout.xml +++ b/wearos/src/main/res/layout/stat_value_layout.xml @@ -46,7 +46,7 @@ android:id="@+id/max_value" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="4dp" + android:layout_marginTop="3dp" android:autoSizeMaxTextSize="6sp" android:autoSizeMinTextSize="4sp" android:autoSizeTextType="uniform"