Skip to content

Commit

Permalink
Fixes and UI consistency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan20 committed Apr 2, 2022
1 parent 150dc6c commit 2f2a340
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 74 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/card_wallet_balance.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/card_wallet_receive_credits.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<TextView
android:layout_width="match_parent"
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/card_wallet_send_credits.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,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/send"
android:textColor="@color/text" />
android:text="@string/send" />
</RelativeLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
4 changes: 1 addition & 3 deletions app/src/main/res/layout/container_comment_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<ProgressBar
android:id="@+id/comment_form_post_progress"
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/container_inline_channel_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,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/create"
android:textColor="@color/text" />
android:text="@string/create" />
</RelativeLayout>
</LinearLayout>
3 changes: 2 additions & 1 deletion app/src/main/res/layout/container_nothing_at_location.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,17 @@
android:fontFamily="@font/opensans"
android:textSize="16sp"
android:textAlignment="center" />

<com.google.android.material.button.MaterialButton
android:id="@+id/nothing_at_location_publish_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="24dp"
android:fontFamily="@font/opensans"
android:textSize="14sp"
android:text="@string/publish_something_here"
android:textFontWeight="300"
android:textSize="14sp"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
4 changes: 1 addition & 3 deletions app/src/main/res/layout/dialog_create_support.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</RelativeLayout>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
4 changes: 1 addition & 3 deletions app/src/main/res/layout/dialog_customize_tags.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/dialog_discover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

</RelativeLayout>
4 changes: 1 addition & 3 deletions app/src/main/res/layout/dialog_repost_claim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</RelativeLayout>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
10 changes: 6 additions & 4 deletions app/src/main/res/layout/fragment_channel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,13 @@
android:layout_height="36dp"
android:layout_marginEnd="8dp"
android:visibility="gone">

<ImageView
android:layout_centerInParent="true"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerInParent="true"
android:src="@drawable/ic_edit"
app:tint="@color/foreground" />
app:tint="@color/green" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/channel_view_delete"
Expand All @@ -170,12 +171,13 @@
android:layout_height="36dp"
android:layout_marginEnd="8dp"
android:visibility="gone">

<ImageView
android:layout_centerInParent="true"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerInParent="true"
android:src="@drawable/ic_delete"
app:tint="@color/foreground" />
app:tint="@color/red" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/channel_view_share"
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/fragment_channel_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,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/save"
android:textColor="@color/text" />
android:text="@string/save" />
</RelativeLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/fragment_channel_manager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</LinearLayout>
</RelativeLayout>
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/fragment_invites.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</RelativeLayout>
</RelativeLayout>

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/fragment_publish_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</RelativeLayout>
</LinearLayout>
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/fragment_rewards.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
9 changes: 2 additions & 7 deletions app/src/main/res/layout/fragment_verification_email.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<ProgressBar
android:id="@+id/verification_email_add_progress"
Expand Down Expand Up @@ -146,10 +143,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:backgroundTint="@color/button"
android:fontFamily="@font/opensans"
android:text="@string/resend"
app:iconTint="@color/button" />
android:text="@string/resend" />

<View
android:layout_width="0dp"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_verification_phone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
android:id="@+id/verification_phone_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" />
Expand Down Expand Up @@ -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" />

<ProgressBar
android:id="@+id/verification_phone_verify_progress"
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/fragment_verification_wallet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@
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/done"
android:textColor="@color/text" />
android:text="@string/done" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
3 changes: 1 addition & 2 deletions app/src/main/res/layout/fragment_wallet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
7 changes: 4 additions & 3 deletions app/src/main/res/layout/list_item_notification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">

<LinearLayout
android:id="@+id/notification_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/rounded_layout_bg"
android:orientation="horizontal">

<RelativeLayout
Expand Down Expand Up @@ -47,7 +48,7 @@
android:layout_height="36dp"
android:layout_centerInParent="true"
android:src="@drawable/ic_check"
app:tint="@color/nextAryanPurple" />
app:tint="@color/button" />
</RelativeLayout>
</RelativeLayout>

Expand Down
12 changes: 7 additions & 5 deletions app/src/main/res/layout/list_item_stream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">

<LinearLayout
android:id="@+id/claim_repost_info"
Expand Down Expand Up @@ -66,7 +66,8 @@
<RelativeLayout
android:id="@+id/claim_media_container"
android:layout_width="160dp"
android:layout_height="90dp">
android:layout_height="90dp"
android:layout_centerVertical="true">

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
Expand Down Expand Up @@ -176,6 +177,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
android:layout_toEndOf="@id/claim_media_container"
android:orientation="vertical">
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/layout/list_item_transaction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="10">

<TextView
android:id="@+id/transaction_claim"
android:clickable="true"
android:background="?attr/selectableItemBackground"
android:layout_weight="6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="6"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:ellipsize="end"
android:fontFamily="@font/opensans"
android:singleLine="true"
android:textColor="@color/AryanPurple"
android:textSize="14sp"
android:textColor="@color/button"
android:textFontWeight="300"
/>
android:textSize="14sp" />
<TextView
android:id="@+id/transaction_fee"
android:gravity="end"
Expand Down
Loading

0 comments on commit 2f2a340

Please sign in to comment.