From 200e407e30f42e9cb7bc67ac63d3f94f9a3d5f6a Mon Sep 17 00:00:00 2001 From: Hafizzle Date: Sun, 17 Sep 2023 11:47:12 -0400 Subject: [PATCH] Set gray outline only for unselected sub purchase options --- Habitica/res/drawable/subscription_box_bg.xml | 5 ++--- Habitica/res/drawable/subscription_type_box_bg.xml | 7 +++++++ Habitica/res/values-night/colors.xml | 2 +- .../ui/views/subscriptions/SubscriptionOptionView.kt | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 Habitica/res/drawable/subscription_type_box_bg.xml diff --git a/Habitica/res/drawable/subscription_box_bg.xml b/Habitica/res/drawable/subscription_box_bg.xml index 147c40f4a5..499e18b04d 100644 --- a/Habitica/res/drawable/subscription_box_bg.xml +++ b/Habitica/res/drawable/subscription_box_bg.xml @@ -1,7 +1,6 @@ - + - - \ No newline at end of file + diff --git a/Habitica/res/drawable/subscription_type_box_bg.xml b/Habitica/res/drawable/subscription_type_box_bg.xml new file mode 100644 index 0000000000..147c40f4a5 --- /dev/null +++ b/Habitica/res/drawable/subscription_type_box_bg.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Habitica/res/values-night/colors.xml b/Habitica/res/values-night/colors.xml index 61330531c5..3a527027a9 100644 --- a/Habitica/res/values-night/colors.xml +++ b/Habitica/res/values-night/colors.xml @@ -61,7 +61,7 @@ @color/yellow_100 @color/green_500 - @color/gray_10 + @color/gray_400 @color/gray_400 @color/gray_50 @color/gray_10 diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionOptionView.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionOptionView.kt index a4cea8a244..90757ace32 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionOptionView.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionOptionView.kt @@ -70,7 +70,7 @@ class SubscriptionOptionView(context: Context, attrs: AttributeSet) : FrameLayou binding.priceLabel.setTextColor(ContextCompat.getColor(context, R.color.text_brand)) binding.descriptionTextView.setTextColor(ContextCompat.getColor(context, R.color.text_brand)) } else { - binding.wrapper.setBackgroundResource(R.drawable.subscription_box_bg) + binding.wrapper.setBackgroundResource(R.drawable.subscription_type_box_bg) binding.subscriptionSelectedView.setBackgroundResource(R.drawable.subscription_unselected) binding.gemCapTextView.setBackgroundResource(R.drawable.pill_bg_gray) binding.gemCapTextView.setTextColor(ContextCompat.getColor(context, R.color.text_secondary))