From f2bc81210caeda59c0c06d51dfb0e0b1d99afb41 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Sun, 29 Nov 2020 23:41:44 +0100 Subject: [PATCH] Cap sentence start letters where necessary in input fields (#786) Cap sentence start letters where necessary in input fields Co-authored-by: 6543 <6543@noreply.codeberg.org> Co-authored-by: M M Arif Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/786 Reviewed-by: 6543 <6543@noreply.codeberg.org> --- app/src/main/res/layout/activity_create_issue.xml | 2 ++ .../main/res/layout/activity_create_new_user.xml | 1 + app/src/main/res/layout/activity_create_pr.xml | 2 ++ .../main/res/layout/activity_create_release.xml | 3 +++ .../res/layout/activity_create_team_by_org.xml | 1 + app/src/main/res/layout/activity_edit_issue.xml | 2 ++ .../res/layout/activity_merge_pull_request.xml | 2 ++ app/src/main/res/layout/activity_new_file.xml | 3 +++ app/src/main/res/layout/activity_new_milestone.xml | 2 ++ .../main/res/layout/activity_new_organization.xml | 2 ++ app/src/main/res/layout/activity_new_repo.xml | 2 ++ .../res/layout/activity_repository_settings.xml | 14 +++++++------- .../main/res/layout/bottom_sheet_reply_layout.xml | 2 +- 13 files changed, 30 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/activity_create_issue.xml b/app/src/main/res/layout/activity_create_issue.xml index cc5a59c9..63a804a8 100644 --- a/app/src/main/res/layout/activity_create_issue.xml +++ b/app/src/main/res/layout/activity_create_issue.xml @@ -77,6 +77,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -104,6 +105,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_create_new_user.xml b/app/src/main/res/layout/activity_create_new_user.xml index e94b6c94..a093c5b5 100644 --- a/app/src/main/res/layout/activity_create_new_user.xml +++ b/app/src/main/res/layout/activity_create_new_user.xml @@ -74,6 +74,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_create_pr.xml b/app/src/main/res/layout/activity_create_pr.xml index 4ada13b1..f12dd044 100644 --- a/app/src/main/res/layout/activity_create_pr.xml +++ b/app/src/main/res/layout/activity_create_pr.xml @@ -77,6 +77,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -104,6 +105,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_create_release.xml b/app/src/main/res/layout/activity_create_release.xml index 563fc877..d60570ff 100644 --- a/app/src/main/res/layout/activity_create_release.xml +++ b/app/src/main/res/layout/activity_create_release.xml @@ -74,6 +74,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -99,6 +100,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -126,6 +128,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_create_team_by_org.xml b/app/src/main/res/layout/activity_create_team_by_org.xml index 205313e6..6a1f1593 100644 --- a/app/src/main/res/layout/activity_create_team_by_org.xml +++ b/app/src/main/res/layout/activity_create_team_by_org.xml @@ -74,6 +74,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_edit_issue.xml b/app/src/main/res/layout/activity_edit_issue.xml index 5da5e64f..85637bae 100644 --- a/app/src/main/res/layout/activity_edit_issue.xml +++ b/app/src/main/res/layout/activity_edit_issue.xml @@ -74,6 +74,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -101,6 +102,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_merge_pull_request.xml b/app/src/main/res/layout/activity_merge_pull_request.xml index 57ca2d87..99a347f9 100644 --- a/app/src/main/res/layout/activity_merge_pull_request.xml +++ b/app/src/main/res/layout/activity_merge_pull_request.xml @@ -88,6 +88,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -114,6 +115,7 @@ android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" android:gravity="top|start" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_new_file.xml b/app/src/main/res/layout/activity_new_file.xml index 939a21b3..4866e228 100644 --- a/app/src/main/res/layout/activity_new_file.xml +++ b/app/src/main/res/layout/activity_new_file.xml @@ -77,6 +77,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -104,6 +105,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -187,6 +189,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_new_milestone.xml b/app/src/main/res/layout/activity_new_milestone.xml index b3d80c5f..113dfb4a 100644 --- a/app/src/main/res/layout/activity_new_milestone.xml +++ b/app/src/main/res/layout/activity_new_milestone.xml @@ -74,6 +74,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -104,6 +105,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_new_organization.xml b/app/src/main/res/layout/activity_new_organization.xml index f81bfe51..6267f02f 100644 --- a/app/src/main/res/layout/activity_new_organization.xml +++ b/app/src/main/res/layout/activity_new_organization.xml @@ -74,6 +74,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -104,6 +105,7 @@ android:textColorHint="?attr/hintColor" android:gravity="top|start" android:scrollbars="vertical" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_new_repo.xml b/app/src/main/res/layout/activity_new_repo.xml index e65f74b5..9480ab9a 100644 --- a/app/src/main/res/layout/activity_new_repo.xml +++ b/app/src/main/res/layout/activity_new_repo.xml @@ -98,6 +98,7 @@ android:textColor="?attr/inputTextColor" android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" + android:inputType="textCapSentences" android:textSize="16sp" /> @@ -127,6 +128,7 @@ android:textColorHighlight="?attr/hintColor" android:textColorHint="?attr/hintColor" android:gravity="top|start" + android:inputType="textCapSentences" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/activity_repository_settings.xml b/app/src/main/res/layout/activity_repository_settings.xml index df1db7d9..36096d46 100644 --- a/app/src/main/res/layout/activity_repository_settings.xml +++ b/app/src/main/res/layout/activity_repository_settings.xml @@ -1,5 +1,5 @@ - + android:padding="16dp" + app:drawableStartCompat="@drawable/ic_edit" /> + android:paddingEnd="16dp" + app:drawableStartCompat="@drawable/ic_arrow_up" /> + android:paddingEnd="16dp" + app:drawableStartCompat="@drawable/ic_delete" />