Browse Source

Add account: grey color
align text

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>

tobiasKaminsky 5 years ago
parent
commit
4d9fc70376

+ 1 - 1
src/main/java/com/owncloud/android/ui/adapter/UserListAdapter.java

@@ -148,7 +148,7 @@ public class UserListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
     private void setupAddAccountListItem(AddAccountViewHolderItem holder) {
         View actionView = holder.itemView;
 
-        holder.usernameViewItem.setTextColor(ThemeUtils.primaryColor(context, true));
+        holder.usernameViewItem.setTextColor(context.getResources().getColor(R.color.fontAppbar));
 
         // bind action listener
         boolean isProviderOrOwnInstallationVisible = context.getResources()

+ 6 - 4
src/main/res/layout/account_action.xml

@@ -23,16 +23,18 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="fill_parent"
     android:layout_height="@dimen/account_action_layout_height"
+    android:layout_margin="@dimen/standard_quarter_margin"
     android:orientation="horizontal"
     android:weightSum="1"
     tools:ignore="UseCompoundDrawables">
 
     <ImageView
         android:id="@+id/user_icon"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
+        android:layout_width="24dp"
+        android:layout_height="24dp"
         android:layout_gravity="center_vertical"
-        android:layout_marginStart="@dimen/list_item_avatar_icon_margin"
+        android:layout_marginStart="20dp"
+        android:layout_marginEnd="8dp"
         android:src="@drawable/ic_account_plus"
         android:contentDescription="@string/prefs_add_account"/>
 
@@ -43,7 +45,7 @@
         android:layout_weight="1"
         android:gravity="center_vertical"
         android:paddingEnd="@dimen/standard_padding"
-        android:paddingStart="28dp"
+        android:paddingStart="12dp"
         android:text="@string/prefs_add_account"
         android:textColor="@color/primary"
         android:textSize="@dimen/two_line_primary_text_size" />

+ 0 - 1
src/main/res/values/dims.xml

@@ -42,7 +42,6 @@
     <dimen name="standard_list_item_size">72dp</dimen>
     <dimen name="two_line_primary_text_size">16sp</dimen>
     <dimen name="two_line_secondary_text_size">12sp</dimen>
-    <dimen name="list_item_avatar_icon_margin">20dp</dimen>
     <dimen name="list_item_share_right_margin">12dp</dimen>
     <dimen name="file_list_item_avatar_icon_radius">10dp</dimen>
     <dimen name="account_action_layout_height">72dp</dimen>