From 2f2a340dfba2b936294fe3f1274f74cd783b8474 Mon Sep 17 00:00:00 2001 From: Aryan Kaushik <34372791+Aryan20@users.noreply.github.com> Date: Sun, 3 Apr 2022 01:24:42 +0530 Subject: [PATCH] Fixes and UI consistency updates --- app/build.gradle | 4 ++-- .../browser/adapter/NotificationListAdapter.java | 2 +- app/src/main/res/layout/card_wallet_balance.xml | 2 -- .../main/res/layout/card_wallet_receive_credits.xml | 4 +--- app/src/main/res/layout/card_wallet_send_credits.xml | 4 +--- app/src/main/res/layout/container_comment_form.xml | 4 +--- .../res/layout/container_inline_channel_form.xml | 4 +--- .../res/layout/container_nothing_at_location.xml | 3 ++- app/src/main/res/layout/dialog_create_support.xml | 4 +--- app/src/main/res/layout/dialog_customize_tags.xml | 4 +--- app/src/main/res/layout/dialog_discover.xml | 4 ++-- app/src/main/res/layout/dialog_repost_claim.xml | 4 +--- app/src/main/res/layout/fragment_channel.xml | 10 ++++++---- app/src/main/res/layout/fragment_channel_form.xml | 4 +--- app/src/main/res/layout/fragment_channel_manager.xml | 2 -- app/src/main/res/layout/fragment_invites.xml | 4 +--- app/src/main/res/layout/fragment_publish_form.xml | 2 -- app/src/main/res/layout/fragment_rewards.xml | 4 +--- .../main/res/layout/fragment_verification_email.xml | 9 ++------- .../main/res/layout/fragment_verification_phone.xml | 4 ++-- .../main/res/layout/fragment_verification_wallet.xml | 4 +--- app/src/main/res/layout/fragment_wallet.xml | 3 +-- app/src/main/res/layout/list_item_notification.xml | 7 ++++--- app/src/main/res/layout/list_item_stream.xml | 12 +++++++----- app/src/main/res/layout/list_item_transaction.xml | 12 ++++++------ app/src/main/res/values/styles.xml | 6 ++++++ 26 files changed, 52 insertions(+), 74 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a6f5a1cc..6f807bcf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,8 +16,8 @@ android { applicationId 'com.aryan.lbrybrowser' minSdkVersion 21 targetSdkVersion 29 - versionCode 1706 - versionName '0.17.6' + versionCode 1707 + versionName '0.17.7' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java b/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java index 760f9ed6..481edd72 100644 --- a/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java @@ -175,7 +175,7 @@ private int getColorForRule(String rule) { return ContextCompat.getColor(context, R.color.nextAryanPurple); } - return ContextCompat.getColor(context, R.color.AryanPurple); + return ContextCompat.getColor(context, R.color.button); } @Override diff --git a/app/src/main/res/layout/card_wallet_balance.xml b/app/src/main/res/layout/card_wallet_balance.xml index 9f7b640c..928add7a 100644 --- a/app/src/main/res/layout/card_wallet_balance.xml +++ b/app/src/main/res/layout/card_wallet_balance.xml @@ -137,10 +137,8 @@ android:layout_marginStart="12dp" android:layout_marginTop="8dp" android:layout_marginEnd="12dp" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" android:text="@string/buy_lbc" - android:textColor="@color/text" android:textSize="16sp" lbry:iconTint="@color/button" /> diff --git a/app/src/main/res/layout/card_wallet_receive_credits.xml b/app/src/main/res/layout/card_wallet_receive_credits.xml index db169b06..e140f78c 100644 --- a/app/src/main/res/layout/card_wallet_receive_credits.xml +++ b/app/src/main/res/layout/card_wallet_receive_credits.xml @@ -76,9 +76,7 @@ android:layout_marginTop="8dp" android:fontFamily="@font/opensans" android:text="@string/get_new_address" - android:textColor="@color/text" - android:textSize="14sp" - app:backgroundTint="@color/button" /> + android:textSize="14sp" /> + android:text="@string/send" /> \ No newline at end of file diff --git a/app/src/main/res/layout/container_comment_form.xml b/app/src/main/res/layout/container_comment_form.xml index 2aedcb46..45e61549 100644 --- a/app/src/main/res/layout/container_comment_form.xml +++ b/app/src/main/res/layout/container_comment_form.xml @@ -193,10 +193,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/comment_form_post" - android:textColor="@color/text" /> + android:text="@string/comment_form_post" /> + android:text="@string/create" /> diff --git a/app/src/main/res/layout/container_nothing_at_location.xml b/app/src/main/res/layout/container_nothing_at_location.xml index 1311dc9e..3a8d3bd4 100644 --- a/app/src/main/res/layout/container_nothing_at_location.xml +++ b/app/src/main/res/layout/container_nothing_at_location.xml @@ -27,6 +27,7 @@ android:fontFamily="@font/opensans" android:textSize="16sp" android:textAlignment="center" /> + \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_create_support.xml b/app/src/main/res/layout/dialog_create_support.xml index 9750ce72..5b233469 100644 --- a/app/src/main/res/layout/dialog_create_support.xml +++ b/app/src/main/res/layout/dialog_create_support.xml @@ -161,9 +161,7 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:backgroundTint="@color/button" - android:fontFamily="@font/opensans" - android:textColor="@color/text" /> + android:fontFamily="@font/opensans" /> \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_customize_tags.xml b/app/src/main/res/layout/dialog_customize_tags.xml index 72bdb663..2b2dff9e 100644 --- a/app/src/main/res/layout/dialog_customize_tags.xml +++ b/app/src/main/res/layout/dialog_customize_tags.xml @@ -101,9 +101,7 @@ android:layout_marginStart="16dp" android:layout_marginEnd="16dp" android:layout_marginBottom="16dp" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/done" - android:textColor="@color/text" /> + android:text="@string/done" /> \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_discover.xml b/app/src/main/res/layout/dialog_discover.xml index 83549dd5..5dc09f91 100644 --- a/app/src/main/res/layout/dialog_discover.xml +++ b/app/src/main/res/layout/dialog_discover.xml @@ -53,10 +53,10 @@ android:layout_alignParentBottom="true" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" + android:backgroundTint="@color/button" android:fontFamily="@font/opensans" android:text="@string/done" android:textColor="@color/text" - android:textSize="14sp" - app:backgroundTint="@color/button" /> + android:textSize="14sp" /> \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_repost_claim.xml b/app/src/main/res/layout/dialog_repost_claim.xml index e539f7f3..64bfdf05 100644 --- a/app/src/main/res/layout/dialog_repost_claim.xml +++ b/app/src/main/res/layout/dialog_repost_claim.xml @@ -187,10 +187,8 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/repost" - android:textColor="@color/text" /> + android:text="@string/repost" /> diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml index 8751bf70..0009362f 100644 --- a/app/src/main/res/layout/fragment_channel.xml +++ b/app/src/main/res/layout/fragment_channel.xml @@ -155,12 +155,13 @@ android:layout_height="36dp" android:layout_marginEnd="8dp" android:visibility="gone"> + + app:tint="@color/green" /> + + app:tint="@color/red" /> + android:text="@string/save" /> diff --git a/app/src/main/res/layout/fragment_channel_manager.xml b/app/src/main/res/layout/fragment_channel_manager.xml index 0733a1f7..6dc6ace9 100644 --- a/app/src/main/res/layout/fragment_channel_manager.xml +++ b/app/src/main/res/layout/fragment_channel_manager.xml @@ -59,9 +59,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="24dp" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/create_a_channel" android:textColor="@color/text" /> diff --git a/app/src/main/res/layout/fragment_invites.xml b/app/src/main/res/layout/fragment_invites.xml index a8227b8a..a7b0a946 100644 --- a/app/src/main/res/layout/fragment_invites.xml +++ b/app/src/main/res/layout/fragment_invites.xml @@ -87,9 +87,7 @@ android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:fontFamily="@font/opensans" - android:text="@string/get_started" - android:textColor="@color/text" - app:backgroundTint="@color/button" /> + android:text="@string/get_started" /> diff --git a/app/src/main/res/layout/fragment_publish_form.xml b/app/src/main/res/layout/fragment_publish_form.xml index 429246bd..97526839 100644 --- a/app/src/main/res/layout/fragment_publish_form.xml +++ b/app/src/main/res/layout/fragment_publish_form.xml @@ -640,9 +640,7 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/publish" android:textColor="@color/text" /> diff --git a/app/src/main/res/layout/fragment_rewards.xml b/app/src/main/res/layout/fragment_rewards.xml index 4d1512fb..6a913f54 100644 --- a/app/src/main/res/layout/fragment_rewards.xml +++ b/app/src/main/res/layout/fragment_rewards.xml @@ -155,10 +155,8 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/get_started" - android:textColor="@color/text" /> + android:text="@string/get_started" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_verification_email.xml b/app/src/main/res/layout/fragment_verification_email.xml index 4dca8e94..681875da 100644 --- a/app/src/main/res/layout/fragment_verification_email.xml +++ b/app/src/main/res/layout/fragment_verification_email.xml @@ -68,11 +68,8 @@ android:id="@+id/verification_email_continue_button" android:layout_width="match_parent" android:layout_height="wrap_content" - android:backgroundTint="@color/button" android:fontFamily="@font/opensans" - android:text="@string/continue_text" - android:textColor="@color/text" - app:iconTint="@color/button" /> + android:text="@string/continue_text" /> + android:text="@string/resend" /> @@ -139,7 +138,8 @@ android:layout_height="wrap_content" android:layout_centerVertical="true" android:fontFamily="@font/opensans" - android:text="@string/verify" /> + android:text="@string/verify" + android:textColor="@color/text" /> + android:text="@string/done" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_wallet.xml b/app/src/main/res/layout/fragment_wallet.xml index a061a7dd..0150a5e4 100644 --- a/app/src/main/res/layout/fragment_wallet.xml +++ b/app/src/main/res/layout/fragment_wallet.xml @@ -101,8 +101,7 @@ android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:fontFamily="@font/opensans" - android:text="@string/sign_up" - app:backgroundTint="@color/button" /> + android:text="@string/sign_up" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_notification.xml b/app/src/main/res/layout/list_item_notification.xml index 122197a9..05222775 100644 --- a/app/src/main/res/layout/list_item_notification.xml +++ b/app/src/main/res/layout/list_item_notification.xml @@ -6,14 +6,15 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="8dp" - android:background="?attr/selectableItemBackground" android:clickable="true" - app:cardCornerRadius="15dp"> + app:cardBackgroundColor="#11ffffff" + app:cardCornerRadius="20dp"> + app:tint="@color/button" /> diff --git a/app/src/main/res/layout/list_item_stream.xml b/app/src/main/res/layout/list_item_stream.xml index 4fc86a43..21fa8b86 100644 --- a/app/src/main/res/layout/list_item_stream.xml +++ b/app/src/main/res/layout/list_item_stream.xml @@ -3,16 +3,16 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_margin="8dp" android:background="@drawable/rounded_layout_bg" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" android:orientation="vertical" - android:paddingStart="16dp" + android:paddingStart="10dp" android:paddingTop="8dp" - android:paddingEnd="16dp" - android:paddingBottom="8dp" - android:layout_margin="10dp"> + android:paddingEnd="10dp" + android:paddingBottom="8dp"> + android:layout_height="90dp" + android:layout_centerVertical="true"> diff --git a/app/src/main/res/layout/list_item_transaction.xml b/app/src/main/res/layout/list_item_transaction.xml index 5096c777..3ea4dbd8 100644 --- a/app/src/main/res/layout/list_item_transaction.xml +++ b/app/src/main/res/layout/list_item_transaction.xml @@ -46,20 +46,20 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:weightSum="10"> + + android:textSize="14sp" /> true @color/colorPrimaryDark @style/AppTheme.DrawerArrowStyle + @style/AppTheme.buttonStyle @@ -17,6 +18,11 @@ true + +