From 8741074906c2cdd4df16d3f3434a66a83d09fa23 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Sat, 1 May 2021 00:01:22 +0200 Subject: [PATCH] UI improvements and update translation file (#900) Co-authored-by: M M Arif Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/900 Reviewed-by: 6543 <6543@noreply.codeberg.org> Co-authored-by: M M Arif Co-committed-by: M M Arif --- .../res/layout/fragment_administration.xml | 2 ++ .../main/res/layout/fragment_repo_info.xml | 26 ++++++++++--------- .../main/res/layout/list_issue_comments.xml | 3 ++- app/src/main/res/layout/list_labels.xml | 3 +-- app/src/main/res/layout/list_milestones.xml | 4 +-- app/src/main/res/layout/nav_header.xml | 4 +-- app/src/main/res/values/strings.xml | 17 +++--------- 7 files changed, 26 insertions(+), 33 deletions(-) diff --git a/app/src/main/res/layout/fragment_administration.xml b/app/src/main/res/layout/fragment_administration.xml index d74afcaf..d7f651aa 100644 --- a/app/src/main/res/layout/fragment_administration.xml +++ b/app/src/main/res/layout/fragment_administration.xml @@ -24,6 +24,7 @@ android:textColor="?attr/primaryTextColor" android:textSize="16sp" android:padding="16dp" + android:background="?android:attr/selectableItemBackground" app:drawableStartCompat="@drawable/ic_people" /> diff --git a/app/src/main/res/layout/fragment_repo_info.xml b/app/src/main/res/layout/fragment_repo_info.xml index fab39968..6d527999 100644 --- a/app/src/main/res/layout/fragment_repo_info.xml +++ b/app/src/main/res/layout/fragment_repo_info.xml @@ -18,6 +18,18 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> + + @@ -57,18 +70,6 @@ android:layout_height="wrap_content" android:orientation="vertical"> - - diff --git a/app/src/main/res/layout/list_issue_comments.xml b/app/src/main/res/layout/list_issue_comments.xml index 425eaed0..9fa24294 100644 --- a/app/src/main/res/layout/list_issue_comments.xml +++ b/app/src/main/res/layout/list_issue_comments.xml @@ -57,7 +57,8 @@ android:layout_height="wrap_content" android:layout_gravity="top" android:layout_weight="0" - android:contentDescription="@string/generalImgContentText" + android:contentDescription="@string/menuContentDesc" + android:background="?android:attr/selectableItemBackgroundBorderless" app:srcCompat="@drawable/ic_dotted_menu_horizontal" /> diff --git a/app/src/main/res/layout/list_labels.xml b/app/src/main/res/layout/list_labels.xml index 496e342f..2f4a35a1 100644 --- a/app/src/main/res/layout/list_labels.xml +++ b/app/src/main/res/layout/list_labels.xml @@ -58,8 +58,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical|end" android:contentDescription="@string/labelMenuContentDesc" - android:paddingStart="10dp" - android:paddingEnd="0dp" + android:background="?android:attr/selectableItemBackgroundBorderless" android:src="@drawable/ic_dotted_menu_horizontal" /> diff --git a/app/src/main/res/layout/list_milestones.xml b/app/src/main/res/layout/list_milestones.xml index ec2ff429..a4bb13ec 100644 --- a/app/src/main/res/layout/list_milestones.xml +++ b/app/src/main/res/layout/list_milestones.xml @@ -156,11 +156,11 @@ diff --git a/app/src/main/res/layout/nav_header.xml b/app/src/main/res/layout/nav_header.xml index d132589a..d3843167 100644 --- a/app/src/main/res/layout/nav_header.xml +++ b/app/src/main/res/layout/nav_header.xml @@ -49,8 +49,8 @@ app:cardBackgroundColor="?attr/primaryBackgroundColor" app:cardCornerRadius="20dp" app:cardElevation="0dp" - app:contentPaddingLeft="5dp" - app:contentPaddingRight="5dp" + app:contentPaddingLeft="8dp" + app:contentPaddingRight="8dp" tools:visibility="visible"> Protocol is required Cannot access network, please check your Internet connection - Yay, We have Internet connection! Repository name is empty Repository name is not valid. [a–z A–Z 0–9 – _] @@ -177,7 +176,7 @@ This function will be removed in the future 😱 - Avatar + Image No milestones found @@ -236,7 +235,7 @@ Pretty Choose Language Choose Time Format - Help us translate GitNex to your language + Translate GitNex via Crodwin Green - Black Code Block Color Code Block Color Selector @@ -249,12 +248,9 @@ Select App Theme Theme Dark - PDF Night Mode - File Viewer Counter Badges Source Code Theme Sublime - Select Source Code Theme Data Cache Size Data Cache Size 50 MB @@ -480,7 +476,7 @@ Copy Issue URL URL copied to clipboard - Copied comment to clipboard + Comment copied to clipboard %1$d\uFF05 completed @@ -638,7 +634,6 @@ Draft was saved automatically. Themes, fonts, badges - PDF mode, source code theme Biometric authentication, SSL certificates, cache Languages Crash reports @@ -730,12 +725,6 @@ Go to App GitNex cannot handle the requested resource, you can open an issue at the project repository as an improvement with providing details of the work. Just launch a default screen for now from the buttons below, it can be changed from settings. - Green on Black - White on Black - Grey on Black - White on Grey - Dark on White - Biometric Authentication Unlock using your biometric credentials No biometric features available on this device