improve icon fitting to theme

This commit is contained in:
Arne 2023-10-16 14:00:37 +02:00
parent 7d5b745933
commit 537a2c9a79
7 changed files with 8 additions and 2 deletions

View file

@ -128,9 +128,9 @@ public class ConversationMenuConfigurator {
if (!visible) { if (!visible) {
return; return;
} }
boolean darkBackground = activity.isDarkTheme();
if (conversation.getNextEncryption() != Message.ENCRYPTION_NONE) { if (conversation.getNextEncryption() != Message.ENCRYPTION_NONE) {
menuSecure.setIcon(R.drawable.ic_lock_black_24dp); //TODO: Add white icon for dark mode too!! menuSecure.setIcon(darkBackground ? R.drawable.ic_lock_white_24dp : R.drawable.ic_lock_black_24dp); //TODO: Add white icon for dark mode too!!
} }
otr.setVisible(Config.supportOtr() && activity.enableOTR()); otr.setVisible(Config.supportOtr() && activity.enableOTR());
if (conversation.getMode() == Conversation.MODE_MULTI) { if (conversation.getMode() == Conversation.MODE_MULTI) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B

View file

@ -0,0 +1,6 @@
<vector android:alpha="0.77" android:autoMirrored="true"
android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M16.62,2.99c-0.49,-0.49 -1.28,-0.49 -1.77,0L6.54,11.3c-0.39,0.39 -0.39,1.02 0,1.41l8.31,8.31c0.49,0.49 1.28,0.49 1.77,0s0.49,-1.28 0,-1.77L9.38,12l7.25,-7.25c0.48,-0.48 0.48,-1.28 -0.01,-1.76z"/>
</vector>