mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
[#35] - Change colors for class
This commit is contained in:
parent
65466b7dd4
commit
93ed6dbd94
3 changed files with 13 additions and 7 deletions
6
Habitica/res/drawable-mdpi/layout_rounded_bg_gray.xml
Normal file
6
Habitica/res/drawable-mdpi/layout_rounded_bg_gray.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/task_gray" />
|
||||
<corners android:radius="@dimen/bar_radius"/>
|
||||
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
|
||||
</shape>
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/bar_size"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/layout_rounded_bg_brand"
|
||||
android:background="@drawable/layout_rounded_bg_gray"
|
||||
android:weightSum="1">
|
||||
|
||||
<View
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
android:id="@+id/TV_value"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/brand_500"
|
||||
android:textColor="@color/md_black_1000"
|
||||
android:text="@{text}"
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center|right"
|
||||
android:textColor="@color/brand_500"
|
||||
android:textColor="@color/md_black_1000"
|
||||
android:text="@{description}"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -102,19 +102,19 @@ public class PartyMemberRecyclerViewAdapter extends RecyclerView.Adapter<PartyMe
|
|||
|
||||
switch (user.getStats()._class) {
|
||||
case healer: {
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.class_healer));
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.md_yellow_100));
|
||||
break;
|
||||
}
|
||||
case warrior: {
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.class_warrior));
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.md_blue_100));
|
||||
break;
|
||||
}
|
||||
case rogue: {
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.class_rogue));
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.md_purple_50));
|
||||
break;
|
||||
}
|
||||
case wizard: {
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.class_wizard));
|
||||
ViewHelper.SetBackgroundTint(classBackground, resources.getColor(R.color.md_red_100));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue