Skip to content

Commit 4fa74ef

Browse files
Prince RajPratyushSingh07
authored andcommitted
fix: leaderboard top user card color visibility in dark mode
1 parent 165aafd commit 4fa74ef

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

app/src/main/res/layout/fragment_leaderboard.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
app:cardElevation="16dp"
7070
android:layout_marginTop="18dp"
7171
android:layout_marginEnd="16sp"
72-
android:backgroundTint="#9CFB9C"
73-
android:outlineSpotShadowColor="#9CFB9C"
72+
android:backgroundTint="@color/topUserCardColor"
73+
android:outlineSpotShadowColor="@color/topUserCardColor"
7474
android:layout_width="300dp"
7575
android:layout_height="85dp"
7676
android:layout_below="@+id/llLeaderboard"

app/src/main/res/values-night/colors.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
<color name="textInputOutlineColor">#fff</color>
2020

2121
<color name="semiTransparentColor">#90FFFFFF</color>
22+
<!-- Card color for top user in leaderboard -->
23+
<color name="topUserCardColor">#77C877</color>
2224
</resources>

app/src/main/res/values/colors.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020
<color name="textInputOutlineColor">#fff</color>
2121

2222
<color name="semiTransparentColor">#90FFFFFF</color>
23+
<!-- Card color for top user in leaderboard -->
24+
<color name="topUserCardColor">#9CFB9C</color>
2325
</resources>

0 commit comments

Comments
 (0)