Replace empty state images with new illustrations

This commit is contained in:
Torsten Grote
2022-10-18 17:23:06 -03:00
parent 7bcffdf0d1
commit e986d4b214
28 changed files with 206 additions and 383 deletions

View File

@@ -76,7 +76,7 @@ public class FeedFragment extends BaseFragment
list = v.findViewById(R.id.postList);
list.setLayoutManager(layoutManager);
list.setAdapter(adapter);
list.setEmptyImage(R.drawable.ic_empty_state_blog);
list.setEmptyImage(R.drawable.il_empty_state_blogs);
list.setEmptyText(R.string.blogs_feed_empty_state);
list.setEmptyAction(R.string.blogs_feed_empty_state_action);

View File

@@ -93,7 +93,7 @@ public class ContactListFragment extends BaseFragment
list = contentView.findViewById(R.id.list);
list.setLayoutManager(new LinearLayoutManager(requireContext()));
list.setAdapter(adapter);
list.setEmptyImage(R.drawable.ic_empty_state_contact_list);
list.setEmptyImage(R.drawable.il_empty_state_contact_list);
list.setEmptyText(getString(R.string.no_contacts));
list.setEmptyAction(getString(R.string.no_contacts_action));

View File

@@ -70,7 +70,7 @@ public abstract class BaseContactSelectorFragment<I extends SelectableContactIte
list = contentView.findViewById(R.id.list);
list.setLayoutManager(new LinearLayoutManager(getActivity()));
list.setEmptyImage(R.drawable.ic_empty_state_contact_list);
list.setEmptyImage(R.drawable.il_empty_state_contact_list);
list.setEmptyText(getString(R.string.no_contacts_selector));
list.setEmptyAction(getString(R.string.no_contacts_selector_action));
adapter = getAdapter(requireContext(), this);

View File

@@ -70,7 +70,7 @@ public class GroupListFragment extends BaseFragment implements
adapter = new GroupListAdapter(this);
list = v.findViewById(R.id.list);
list.setEmptyImage(R.drawable.ic_empty_state_group_list);
list.setEmptyImage(R.drawable.il_empty_state_group_list);
list.setEmptyText(R.string.groups_list_empty);
list.setEmptyAction(R.string.groups_list_empty_action);
list.setLayoutManager(new LinearLayoutManager(getContext()));

View File

@@ -1,21 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="96dp"
android:viewportHeight="156"
android:viewportWidth="162">
<path
android:fillColor="#ffffff"
android:pathData="M140.87,53.647H91.565V64.235H140.87V53.647Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M140.869,99.529V88.941H115.512L126.077,99.529H140.869Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M140.869,71.294H97.904L108.469,81.882H140.869V71.294Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M147.912,14.823H41.556L84.521,57.882V28.941H147.912V120.706H147.208L157.773,131.294C160.59,128.47 161.999,124.941 161.999,120.706V28.941C161.999,21.176 155.66,14.823 147.912,14.823Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M129.6,120.706L84.522,75.529L23.948,14.823L9.157,0L0,9.176L10.565,19.765C8.452,21.882 7.043,25.412 7.043,28.941V120.706C7.043,128.471 13.383,134.824 21.13,134.824H125.374L146.504,156L155.661,146.824L143.687,134.824L129.6,120.706ZM84.522,120.706V93.882L111.287,120.706H84.522Z"/>
</vector>

View File

@@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportHeight="164"
android:viewportWidth="164">
<path
android:fillColor="#ffffff"
android:pathData="M27.334,0L27.334,13.666L136.668,13.666L136.668,0L27.334,0zM27.334,27.334C19.817,27.334 13.666,33.483 13.666,41L13.666,123C13.666,130.517 19.817,136.668 27.334,136.668L136.668,136.668C144.184,136.668 150.332,130.517 150.332,123L150.332,41C150.332,33.483 144.184,27.334 136.668,27.334L27.334,27.334zM82.15,44.758C89.592,44.758 95.348,46.477 99.42,49.914C103.525,53.351 105.576,58.239 105.576,64.58C105.576,67.35 105.027,69.869 103.926,72.139C102.825,74.408 101.055,76.728 98.619,79.098L92.863,84.453C91.228,86.022 90.093,87.64 89.459,89.309C88.825,90.944 88.475,93.03 88.408,95.566L74.092,95.566C74.092,90.694 74.641,86.856 75.742,84.053C76.843,81.216 78.63,78.762 81.1,76.693C83.569,74.624 85.437,72.739 86.705,71.037C88.006,69.302 88.658,67.401 88.658,65.332C88.658,60.293 86.489,57.771 82.15,57.771C80.148,57.771 78.53,58.506 77.295,59.975C76.06,61.443 75.409,63.429 75.342,65.932L58.424,65.932C58.49,59.257 60.592,54.068 64.73,50.363C68.869,46.626 74.675,44.758 82.15,44.758zM81.398,102.324C84.068,102.324 86.288,103.125 88.057,104.727C89.859,106.295 90.76,108.314 90.76,110.783C90.76,113.253 89.859,115.289 88.057,116.891C86.288,118.459 84.068,119.242 81.398,119.242C78.729,119.242 76.493,118.459 74.691,116.891C72.923,115.289 72.039,113.253 72.039,110.783C72.039,108.314 72.923,106.295 74.691,104.727C76.493,103.125 78.729,102.324 81.398,102.324zM27.334,150.332L27.334,164L136.668,164L136.668,150.332L27.334,150.332z"/>
</vector>

View File

@@ -1,15 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportHeight="148"
android:viewportWidth="148">
<path
android:fillColor="#ffffff"
android:pathData="M107.266,74.679C111.34,74.679 114.055,71.964 114.055,67.89V6.789C114.055,2.716 111.34,0 107.266,0H24.44L99.119,74.679H107.266Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M141.211,27.156H127.633V88.257H112.697L148,123.56V33.945C148,29.872 144.606,27.156 141.211,27.156Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M8.826,1.357L0,10.183L12.22,22.403V101.835L39.376,74.679H64.495L78.074,88.257H39.376V101.835C39.376,105.908 42.092,108.624 46.165,108.624H98.44L137.817,148L146.642,139.174L8.826,1.357Z"/>
</vector>

View File

@@ -1,18 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="81dp"
android:viewportHeight="140"
android:viewportWidth="172">
<path
android:fillColor="#ffffff"
android:pathData="M125.091,103.444L71.927,50.556L38.309,17.111L21.109,0L10.946,10.111L31.273,30.333C31.273,31.889 31.273,32.667 31.273,34.222C31.273,47.444 41.437,57.556 54.727,57.556C56.291,57.556 57.073,57.556 58.637,56.778L78.182,76.222C69.582,74.667 60.982,73.111 54.727,73.111C36.745,73.111 0,82.444 0,100.333V119.778H109.455V107.333L142.291,140L152.455,129.889L142.291,119.778L125.091,103.444Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M117.273,57.555C130.227,57.555 140.728,47.108 140.728,34.222C140.728,21.335 130.227,10.888 117.273,10.888C104.319,10.888 93.818,21.335 93.818,34.222C93.818,47.108 104.319,57.555 117.273,57.555Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M78.182,34.222C78.182,20.999 68.018,10.888 54.727,10.888C53.945,10.888 53.164,10.888 52.382,10.888L78.182,36.555C78.182,35.777 78.182,34.999 78.182,34.222Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M117.272,73.11C116.49,73.11 115.709,73.11 114.927,73.11L161.836,119.777H172V100.333C172,82.444 135.254,73.11 117.272,73.11Z"/>
</vector>

View File

@@ -0,0 +1,37 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81dp"
android:height="81dp"
android:viewportWidth="81"
android:viewportHeight="81">
<path
android:fillColor="@color/il_background"
android:pathData="M14.96,62.003C13.856,62.003 12.96,61.107 12.96,60.003L12.96,30.003C12.96,28.898 13.856,28.003 14.96,28.003L34.96,28.003C36.065,28.003 36.96,28.898 36.96,30.003L36.96,60.003C36.96,61.107 36.065,62.003 34.96,62.003L14.96,62.003Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M34.96,29.503L14.96,29.503C14.684,29.503 14.46,29.727 14.46,30.003L14.46,60.003C14.46,60.279 14.684,60.503 14.96,60.503L34.96,60.503C35.237,60.503 35.46,60.279 35.46,60.003L35.46,30.003C35.46,29.727 35.237,29.503 34.96,29.503ZM12.96,60.003C12.96,61.107 13.856,62.003 14.96,62.003L34.96,62.003C36.065,62.003 36.96,61.107 36.96,60.003L36.96,30.003C36.96,28.898 36.065,28.003 34.96,28.003L14.96,28.003C13.856,28.003 12.96,28.898 12.96,30.003L12.96,60.003Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M45.596,40.67C45.596,40.256 45.931,39.92 46.346,39.92L68.345,39.92C68.76,39.92 69.095,40.256 69.095,40.67C69.095,41.084 68.76,41.42 68.345,41.42L46.346,41.42C45.931,41.42 45.596,41.084 45.596,40.67Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M45.596,32.004C45.596,31.59 45.931,31.254 46.346,31.254L68.345,31.254C68.76,31.254 69.095,31.59 69.095,32.004C69.095,32.418 68.76,32.754 68.345,32.754L46.346,32.754C45.931,32.754 45.596,32.418 45.596,32.004Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M45.596,49.337C45.596,48.923 45.931,48.587 46.346,48.587L68.346,48.587C68.76,48.587 69.096,48.923 69.096,49.337C69.096,49.751 68.76,50.087 68.346,50.087L46.346,50.087C45.931,50.087 45.596,49.751 45.596,49.337Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M45.596,58.003C45.596,57.589 45.931,57.253 46.346,57.253L57.346,57.253C57.76,57.253 58.096,57.589 58.096,58.003C58.096,58.417 57.76,58.753 57.346,58.753L46.346,58.753C45.931,58.753 45.596,58.417 45.596,58.003Z" />
<path
android:fillColor="@color/il_background"
android:fillType="evenOdd"
android:pathData="M79.868,24.902C79.852,20.497 76.277,16.931 71.868,16.931L9.868,16.931C5.45,16.931 1.868,20.513 1.868,24.931L1.868,16.874C1.868,12.456 5.45,8.874 9.868,8.874L71.868,8.874C76.286,8.874 79.868,12.456 79.868,16.874V24.902Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M1.118,16.874C1.118,12.042 5.036,8.124 9.868,8.124L71.868,8.124C76.701,8.124 80.618,12.042 80.618,16.874V64.874C80.618,69.706 76.701,73.624 71.868,73.624L9.868,73.623C5.036,73.623 1.118,69.706 1.118,64.873L1.118,56.849L1.118,56.843L1.118,16.874ZM9.868,9.624L71.868,9.624C75.872,9.624 79.118,12.87 79.118,16.874V19.954C77.545,17.631 74.885,16.105 71.868,16.105L9.868,16.105C6.852,16.105 4.191,17.631 2.618,19.954L2.618,16.874C2.618,12.87 5.864,9.624 9.868,9.624ZM2.618,64.873C2.618,68.878 5.864,72.123 9.868,72.123L71.868,72.124C75.872,72.124 79.118,68.878 79.118,64.874L79.118,24.905L79.118,24.903C79.103,20.912 75.863,17.681 71.868,17.681L9.868,17.681C5.864,17.681 2.618,20.927 2.618,24.931L2.618,64.873Z" />
</vector>

View File

@@ -0,0 +1,26 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81dp"
android:height="81dp"
android:viewportWidth="81"
android:viewportHeight="81">
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M54.877,3.199L70.294,5.822C75.408,6.692 78.855,11.5 78.039,16.622L69.73,68.746C68.748,74.906 62.001,78.315 56.476,75.442L57.175,74.112C61.791,76.512 67.427,73.664 68.247,68.518L76.556,16.395C77.244,12.081 74.341,8.032 70.034,7.299L56.398,4.98L57.175,74.112L55.674,74.136L54.877,3.199Z" />
<path
android:fillColor="@color/il_background"
android:fillType="evenOdd"
android:pathData="M9.602,74.999L9.602,4H57.602C62.02,4 65.602,7.582 65.602,12V67C65.602,71.418 62.02,75 57.602,75L9.602,74.999ZM21.89,49.166V53.039C21.89,57.458 25.471,61.039 29.89,61.039H45.847C50.265,61.039 53.847,57.458 53.847,53.039V49.166C53.847,44.747 50.265,41.166 45.847,41.166H29.89C25.471,41.166 21.89,44.747 21.89,49.166ZM37.868,34.853C42.557,34.853 46.357,31.072 46.357,26.407C46.357,21.742 42.557,17.961 37.868,17.961C33.18,17.961 29.38,21.742 29.38,26.407C29.38,31.072 33.18,34.853 37.868,34.853Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M21.89,49.166V53.039C21.89,57.458 25.471,61.039 29.89,61.039H45.847C50.265,61.039 53.847,57.458 53.847,53.039V49.166C53.847,44.747 50.265,41.166 45.847,41.166H29.89C25.471,41.166 21.89,44.747 21.89,49.166ZM23.39,53.039V49.166C23.39,45.576 26.3,42.666 29.89,42.666H45.847C49.437,42.666 52.347,45.576 52.347,49.166V53.039C52.347,56.629 49.437,59.539 45.847,59.539H29.89C26.3,59.539 23.39,56.629 23.39,53.039Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M37.868,34.853C42.557,34.853 46.357,31.072 46.357,26.407C46.357,21.742 42.557,17.961 37.868,17.961C33.18,17.961 29.38,21.742 29.38,26.407C29.38,31.072 33.18,34.853 37.868,34.853ZM44.857,26.407C44.857,30.236 41.735,33.353 37.868,33.353C34.002,33.353 30.88,30.236 30.88,26.407C30.88,22.578 34.002,19.461 37.868,19.461C41.735,19.461 44.857,22.578 44.857,26.407Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M57.602,2.5H8.102L8.102,17.733H2.851C2.436,17.733 2.101,18.069 2.101,18.483C2.101,18.898 2.436,19.233 2.851,19.233H8.102L8.102,38.878H2.851C2.436,38.878 2.101,39.214 2.101,39.628C2.101,40.042 2.436,40.378 2.851,40.378H8.102L8.102,60.752H2.851C2.436,60.752 2.101,61.088 2.101,61.502C2.101,61.916 2.436,62.252 2.851,62.252H8.102L8.102,76.499L57.602,76.5C62.849,76.5 67.102,72.247 67.102,67V12C67.102,6.753 62.849,2.5 57.602,2.5ZM9.602,62.252L9.602,74.999L57.602,75C62.02,75 65.602,71.418 65.602,67V12C65.602,7.582 62.02,4 57.602,4H9.602L9.602,17.733H14.615C15.029,17.733 15.365,18.069 15.365,18.483C15.365,18.898 15.029,19.233 14.615,19.233H9.602L9.602,38.878H14.615C15.029,38.878 15.365,39.214 15.365,39.628C15.365,40.042 15.029,40.378 14.615,40.378H9.602L9.602,60.752H14.615C15.029,60.752 15.365,61.088 15.365,61.502C15.365,61.916 15.029,62.252 14.615,62.252H9.602Z" />
</vector>

View File

@@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81dp"
android:height="81dp"
android:viewportWidth="81"
android:viewportHeight="81">
<path
android:fillColor="@color/il_background"
android:fillType="evenOdd"
android:pathData="M20.394,48.642V58.213C20.394,62.631 23.975,66.213 28.394,66.213H63.081L79.401,75.329V30.909C79.401,26.491 75.82,22.909 71.401,22.909H60.407V40.642C60.407,45.061 56.825,48.642 52.407,48.642H20.394Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M9.401,4.579C4.569,4.579 0.651,8.497 0.651,13.329V59.02L17.915,49.378H19.644V58.213C19.644,63.046 23.561,66.963 28.394,66.963H62.886L80.151,76.606V30.909C80.151,26.077 76.234,22.159 71.401,22.159H61.152V13.329C61.152,8.497 57.235,4.579 52.402,4.579H9.401ZM2.151,13.329C2.151,9.325 5.397,6.079 9.401,6.079H52.402C56.406,6.079 59.652,9.325 59.652,13.329V40.628C59.652,44.632 56.406,47.878 52.402,47.878H17.524L2.151,56.464V13.329ZM61.157,40.642V23.659H71.401C75.406,23.659 78.651,26.905 78.651,30.909V74.051L63.277,65.463H28.394C24.389,65.463 21.144,62.217 21.144,58.213V49.392H52.407C57.239,49.392 61.157,45.475 61.157,40.642Z" />
</vector>

View File

@@ -0,0 +1,21 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81dp"
android:height="81dp"
android:viewportWidth="81"
android:viewportHeight="81">
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M49.133,16.654C49.133,21.219 45.433,24.919 40.868,24.919C36.304,24.919 32.603,21.219 32.603,16.654C32.603,12.089 36.304,8.389 40.868,8.389C45.433,8.389 49.133,12.089 49.133,16.654ZM47.633,16.654C47.633,20.39 44.604,23.419 40.868,23.419C37.132,23.419 34.103,20.39 34.103,16.654C34.103,12.917 37.132,9.889 40.868,9.889C44.604,9.889 47.633,12.917 47.633,16.654Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M25.745,25.92C25.745,30.484 22.045,34.185 17.48,34.185C12.915,34.185 9.215,30.484 9.215,25.92C9.215,21.355 12.915,17.654 17.48,17.654C22.045,17.654 25.745,21.355 25.745,25.92ZM24.245,25.92C24.245,29.656 21.216,32.685 17.48,32.685C13.744,32.685 10.715,29.656 10.715,25.92C10.715,22.183 13.744,19.154 17.48,19.154C21.216,19.154 24.245,22.183 24.245,25.92Z" />
<path
android:fillColor="@color/il_border"
android:pathData="M2.618,49.168C2.618,45.164 5.864,41.918 9.868,41.918H24.506V61.165C24.506,61.579 24.842,61.915 25.256,61.915C25.671,61.915 26.006,61.579 26.006,61.165V41.975C29.579,42.424 32.342,45.473 32.342,49.168V72.392C32.342,72.806 32.678,73.142 33.092,73.142C33.506,73.142 33.842,72.806 33.842,72.392V49.168C33.842,44.644 30.409,40.922 26.006,40.465V39.777C26.006,35.773 29.252,32.527 33.256,32.527H48.48C52.485,32.527 55.73,35.773 55.73,39.777V40.465C51.327,40.922 47.894,44.644 47.894,49.168V70.555C47.894,70.969 48.23,71.305 48.644,71.305C49.058,71.305 49.394,70.969 49.394,70.555V49.168C49.394,45.473 52.158,42.424 55.73,41.975V61.165C55.73,61.579 56.066,61.915 56.48,61.915C56.895,61.915 57.23,61.579 57.23,61.165V41.918H71.868C75.872,41.918 79.118,45.164 79.118,49.168V70.555C79.118,70.969 79.454,71.305 79.868,71.305C80.282,71.305 80.618,70.969 80.618,70.555V49.168C80.618,44.335 76.701,40.418 71.868,40.418H57.23V39.777C57.23,34.945 53.313,31.027 48.48,31.027H33.256C28.424,31.027 24.506,34.945 24.506,39.777V40.418H9.868C5.036,40.418 1.118,44.335 1.118,49.168V72.392C1.118,72.806 1.454,73.142 1.868,73.142C2.282,73.142 2.618,72.806 2.618,72.392V49.168Z" />
<path
android:fillColor="@color/il_border"
android:fillType="evenOdd"
android:pathData="M72.522,25.92C72.522,30.484 68.821,34.185 64.256,34.185C59.692,34.185 55.991,30.484 55.991,25.92C55.991,21.355 59.692,17.654 64.256,17.654C68.821,17.654 72.522,21.355 72.522,25.92ZM71.022,25.92C71.022,29.656 67.993,32.685 64.256,32.685C60.52,32.685 57.491,29.656 57.491,25.92C57.491,22.183 60.52,19.154 64.256,19.154C67.993,19.154 71.022,22.183 71.022,25.92Z" />
</vector>

View File

@@ -41,7 +41,7 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
app:tint="?attr/colorControlNormal"
tools:src="@drawable/ic_empty_state_group_list" />
tools:src="@drawable/il_empty_state_group_list" />
<TextView
android:id="@+id/emptyText"

View File

@@ -5,6 +5,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:emptyAction="@string/no_forums_action"
app:emptyImage="@drawable/ic_empty_state_forum_list"
app:emptyImage="@drawable/il_empty_state_forum_list"
app:emptyText="@string/no_forums"
app:layout_behavior="org.briarproject.briar.android.view.BriarRecyclerViewBehavior" />

View File

@@ -26,4 +26,7 @@
<color name="thread_item_highlight">@android:color/black</color>
<color name="divider">@android:color/black</color>
<color name="il_border">#64748B</color>
<color name="il_background">#334155</color>
</resources>

View File

@@ -52,6 +52,9 @@
<color name="msg_status_bubble_foreground">@android:color/white</color>
<color name="msg_selected_background">@color/briar_accent</color>
<color name="il_border">#9CA3AF</color>
<color name="il_background">#E5E7EB</color>
<!-- text colors -->
<color name="briar_text_link">@color/briar_blue_400</color>
<color name="briar_text_primary">#df000000</color>