mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-10 06:03:27 +00:00
Less obtrusive sent icon for messages
This commit is contained in:
parent
870af51fe0
commit
3f7590ac87
2 changed files with 23 additions and 1 deletions
|
@ -1480,7 +1480,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
// Line 3
|
// Line 3
|
||||||
int icon = (message.drafts > 0
|
int icon = (message.drafts > 0
|
||||||
? R.drawable.twotone_edit_24
|
? R.drawable.twotone_edit_24
|
||||||
: EntityFolder.getIcon(outgoing ? EntityFolder.SENT : message.folderType));
|
: (outgoing ? R.drawable.twotone_send_24_80 : EntityFolder.getIcon(message.folderType)));
|
||||||
ivType.setVisibility(message.drafts > 0 ||
|
ivType.setVisibility(message.drafts > 0 ||
|
||||||
(viewType == ViewType.UNIFIED && type == null && (!inbox || outgoing)) ||
|
(viewType == ViewType.UNIFIED && type == null && (!inbox || outgoing)) ||
|
||||||
(viewType == ViewType.FOLDER && outgoing && !EntityFolder.SENT.equals(message.folderType)) ||
|
(viewType == ViewType.FOLDER && outgoing && !EntityFolder.SENT.equals(message.folderType)) ||
|
||||||
|
|
22
app/src/main/res/drawable/twotone_send_24_80.xml
Normal file
22
app/src/main/res/drawable/twotone_send_24_80.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:autoMirrored="true"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<group
|
||||||
|
android:scaleX="0.8"
|
||||||
|
android:scaleY="0.8"
|
||||||
|
android:translateX="2.4"
|
||||||
|
android:translateY="2.4">
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.3"
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M4,8.25l7.51,1 -7.5,-3.22zM4.01,17.97l7.5,-3.22 -7.51,1z"
|
||||||
|
android:strokeAlpha="0.3" />
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M2.01,3L2,10l15,2 -15,2 0.01,7L23,12 2.01,3zM4,8.25L4,6.03l7.51,3.22 -7.51,-1zM4.01,17.97v-2.22l7.51,-1 -7.51,3.22z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
Loading…
Add table
Reference in a new issue