Fixed chat rooms menu icons while in dark mode

This commit is contained in:
Sylvain Berfini 2022-06-02 14:59:11 +02:00
parent 89d072de68
commit 7e391ca518
6 changed files with 33 additions and 5 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:src="@drawable/menu_add_contact"
android:tint="?attr/drawableTintColor"/>
</item>
</selector>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:src="@drawable/menu_notifications_off"
android:tint="?attr/drawableTintColor"/>
</item>
</selector>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:src="@drawable/menu_notifications_on"
android:tint="?attr/drawableTintColor"/>
</item>
</selector>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:src="@drawable/menu_contact"
android:tint="?attr/drawableTintColor"/>
</item>
</selector>

View file

@ -153,7 +153,7 @@
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:layout_marginRight="5dp"
android:src="@drawable/menu_notifications_off"/>
android:src="@drawable/chat_room_menu_mute_notifications"/>
<ImageView
android:visibility="@{viewModel.ephemeralEnabled ? View.VISIBLE : View.GONE, default=gone}"

View file

@ -65,7 +65,7 @@
android:onClick="@{addToContactsListener}"
style="@style/popup_item_font"
android:text="@string/chat_message_context_menu_add_to_contacts"
app:drawableRightCompat="@drawable/menu_add_contact" />
app:drawableRightCompat="@drawable/chat_room_menu_add_contact" />
<TextView
android:layout_width="match_parent"
@ -75,7 +75,7 @@
android:onClick="@{goToContactListener}"
style="@style/popup_item_font"
android:text="@string/chat_room_context_menu_go_to_contact"
app:drawableRightCompat="@drawable/menu_contact" />
app:drawableRightCompat="@drawable/chat_room_menu_view_contact" />
<TextView
android:layout_width="match_parent"
@ -115,7 +115,7 @@
android:onClick="@{muteListener}"
style="@style/popup_item_font"
android:text="@string/chat_message_context_menu_turn_off_notifications"
app:drawableRightCompat="@drawable/menu_notifications_off" />
app:drawableRightCompat="@drawable/chat_room_menu_mute_notifications" />
<TextView
android:layout_width="match_parent"
@ -125,7 +125,7 @@
android:onClick="@{unmuteListener}"
style="@style/popup_item_font"
android:text="@string/chat_message_context_menu_turn_on_notifications"
app:drawableRightCompat="@drawable/menu_notifications_on" />
app:drawableRightCompat="@drawable/chat_room_menu_unmute_notifications" />
<TextView
android:layout_width="match_parent"