Skip to content

Commit

Permalink
fix info button color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed May 23, 2024
1 parent ff12f40 commit 7a40b56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/color/activated_tint.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:color="@color/accent"/>
<item android:state_activated="false" android:color="@android:color/black"/>
<item android:state_activated="false" android:color="@color/text"/>
</selector>
5 changes: 5 additions & 0 deletions app/src/main/res/color/activated_tint_on_white.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:color="@color/accent"/>
<item android:state_activated="false" android:color="@android:color/black"/>
</selector>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
android:scaleType="center"
style="@style/RoundWhiteButton"
app:srcCompat="@drawable/ic_location_state_24dp"
app:tint="@color/activated_tint"
app:tint="@color/activated_tint_on_white"
android:contentDescription="@string/map_btn_gps_tracking"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down

0 comments on commit 7a40b56

Please sign in to comment.