mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-19 04:14:12 +00:00
update stats icon. Fixes #839
This commit is contained in:
parent
5aa643333d
commit
60a4e3fac3
2 changed files with 49 additions and 1 deletions
48
Habitica/res/drawable/button_gray_100.xml
Normal file
48
Habitica/res/drawable/button_gray_100.xml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="true" >
|
||||
<shape>
|
||||
<solid
|
||||
android:color="@color/gray_200"/>
|
||||
<corners
|
||||
android:radius="3dp" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:top="10dp"
|
||||
android:right="10dp"
|
||||
android:bottom="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:state_focused="true" >
|
||||
<shape>
|
||||
<solid
|
||||
android:color="@color/gray_200"
|
||||
android:angle="270" />
|
||||
<corners
|
||||
android:radius="3dp" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:top="10dp"
|
||||
android:right="10dp"
|
||||
android:bottom="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid
|
||||
android:color="@color/gray_100"
|
||||
android:angle="270" />
|
||||
<corners
|
||||
android:radius="3dp" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:top="10dp"
|
||||
android:right="10dp"
|
||||
android:bottom="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
|
|
@ -169,7 +169,7 @@ class StatsFragment: BaseMainFragment() {
|
|||
val points = user?.stats?.points ?: 0
|
||||
numberOfPointsTextView.text = getString(R.string.points_to_allocate, points)
|
||||
numberOfPointsTextView.setTextColor(ContextCompat.getColor(context, R.color.white))
|
||||
numberOfPointsTextView.background = ContextCompat.getDrawable(context, R.drawable.pill_bg_gray_100)
|
||||
numberOfPointsTextView.background = ContextCompat.getDrawable(context, R.drawable.button_gray_100)
|
||||
leftSparklesView.visibility = View.VISIBLE
|
||||
rightSparklesView.visibility = View.VISIBLE
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue