Browse Source

Changed some icons

main
M66B 6 years ago
parent
commit
6dd31d4e1b
6 changed files with 17 additions and 7 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/AdapterAttachment.java
  2. +1
    -1
      app/src/main/java/eu/faircode/email/AdapterFolder.java
  3. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentMessages.java
  4. +10
    -0
      app/src/main/res/drawable/baseline_cloud_download_24.xml
  5. +2
    -2
      app/src/main/res/layout/fragment_legend.xml
  6. +1
    -1
      app/src/main/res/layout/item_attachment.xml

+ 1
- 1
app/src/main/java/eu/faircode/email/AdapterAttachment.java View File

@ -106,7 +106,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
ivStatus.setVisibility(View.VISIBLE); ivStatus.setVisibility(View.VISIBLE);
} else { } else {
if (attachment.progress == null) { if (attachment.progress == null) {
ivStatus.setImageResource(R.drawable.baseline_get_app_24);
ivStatus.setImageResource(R.drawable.baseline_cloud_download_24);
ivStatus.setVisibility(View.VISIBLE); ivStatus.setVisibility(View.VISIBLE);
} else } else
ivStatus.setVisibility(View.GONE); ivStatus.setVisibility(View.GONE);


+ 1
- 1
app/src/main/java/eu/faircode/email/AdapterFolder.java View File

@ -108,7 +108,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
else if ("syncing".equals(folder.state)) else if ("syncing".equals(folder.state))
ivState.setImageResource(R.drawable.baseline_compare_arrows_24); ivState.setImageResource(R.drawable.baseline_compare_arrows_24);
else if ("downloading".equals(folder.state)) else if ("downloading".equals(folder.state))
ivState.setImageResource(R.drawable.baseline_get_app_24);
ivState.setImageResource(R.drawable.baseline_cloud_download_24);
else else
ivState.setImageResource(R.drawable.baseline_cloud_off_24); ivState.setImageResource(R.drawable.baseline_cloud_off_24);
ivState.setVisibility(folder.synchronize || folder.state != null ? View.VISIBLE : View.INVISIBLE); ivState.setVisibility(folder.synchronize || folder.state != null ? View.VISIBLE : View.INVISIBLE);


+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -205,7 +205,7 @@ public class FragmentMessages extends FragmentEx {
if (dX > margin) { if (dX > margin) {
// Right swipe // Right swipe
Drawable d = getResources().getDrawable(inbox ? R.drawable.baseline_inbox_24 : R.drawable.baseline_archive_24, getContext().getTheme());
Drawable d = getResources().getDrawable(inbox ? R.drawable.baseline_move_to_inbox_24 : R.drawable.baseline_archive_24, getContext().getTheme());
int padding = (itemView.getHeight() - d.getIntrinsicHeight()); int padding = (itemView.getHeight() - d.getIntrinsicHeight());
d.setBounds( d.setBounds(
itemView.getLeft() + margin, itemView.getLeft() + margin,
@ -215,7 +215,7 @@ public class FragmentMessages extends FragmentEx {
d.draw(canvas); d.draw(canvas);
} else if (dX < -margin) { } else if (dX < -margin) {
// Left swipe // Left swipe
Drawable d = getResources().getDrawable(inbox ? R.drawable.baseline_inbox_24 : R.drawable.baseline_delete_24, getContext().getTheme());
Drawable d = getResources().getDrawable(inbox ? R.drawable.baseline_move_to_inbox_24 : R.drawable.baseline_delete_24, getContext().getTheme());
int padding = (itemView.getHeight() - d.getIntrinsicHeight()); int padding = (itemView.getHeight() - d.getIntrinsicHeight());
d.setBounds( d.setBounds(
itemView.getLeft() + itemView.getWidth() - d.getIntrinsicWidth() - margin, itemView.getLeft() + itemView.getWidth() - d.getIntrinsicWidth() - margin,


+ 10
- 0
app/src/main/res/drawable/baseline_cloud_download_24.xml View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19.35,10.04C18.67,6.59 15.64,4 12,4 9.11,4 6.6,5.64 5.35,8.04 2.34,8.36 0,10.91 0,14c0,3.31 2.69,6 6,6h13c2.76,0 5,-2.24 5,-5 0,-2.64 -2.05,-4.78 -4.65,-4.96zM17,13l-5,5 -5,-5h3V9h4v4h3z"/>
</vector>

+ 2
- 2
app/src/main/res/layout/fragment_legend.xml View File

@ -13,7 +13,7 @@
android:id="@+id/ivInbox" android:id="@+id/ivInbox"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:src="@drawable/baseline_inbox_24"
android:src="@drawable/baseline_move_to_inbox_24"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@ -313,7 +313,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:src="@drawable/baseline_get_app_24"
android:src="@drawable/baseline_cloud_download_24"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSynchronizing" /> app:layout_constraintTop_toBottomOf="@id/tvSynchronizing" />


+ 1
- 1
app/src/main/res/layout/item_attachment.xml View File

@ -54,7 +54,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:src="@drawable/baseline_get_app_24"
android:src="@drawable/baseline_cloud_download_24"
app:layout_constraintEnd_toStartOf="@+id/ivSave" app:layout_constraintEnd_toStartOf="@+id/ivSave"
app:layout_constraintStart_toEndOf="@id/tvSize" app:layout_constraintStart_toEndOf="@id/tvSize"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />


Loading…
Cancel
Save