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 <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/786
Reviewed-by: 6543 <6543@noreply.codeberg.org>
This commit is contained in:
M M Arif 2020-11-29 23:41:44 +01:00 committed by 6543
parent a6e97a1b36
commit f2bc81210c
13 changed files with 30 additions and 8 deletions

View File

@ -77,6 +77,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -104,6 +105,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -74,6 +74,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -77,6 +77,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -104,6 +105,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -74,6 +74,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -99,6 +100,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -126,6 +128,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -74,6 +74,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -74,6 +74,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -101,6 +102,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -88,6 +88,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -114,6 +115,7 @@
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -77,6 +77,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -104,6 +105,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -187,6 +189,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -74,6 +74,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -104,6 +105,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -74,6 +74,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -104,6 +105,7 @@
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:scrollbars="vertical"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -98,6 +98,7 @@
android:textColor="?attr/inputTextColor"
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
@ -127,6 +128,7 @@
android:textColorHighlight="?attr/hintColor"
android:textColorHint="?attr/hintColor"
android:gravity="top|start"
android:inputType="textCapSentences"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
@ -57,11 +57,11 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/repoSettingsEditProperties"
android:drawableStart="@drawable/ic_edit"
android:drawablePadding="32dp"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:padding="16dp" />
android:padding="16dp"
app:drawableStartCompat="@drawable/ic_edit" />
<View
android:layout_width="match_parent"
@ -81,13 +81,13 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/repoSettingsTransferOwnership"
android:drawableStart="@drawable/ic_arrow_up"
android:drawablePadding="32dp"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:paddingTop="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp" />
android:paddingEnd="16dp"
app:drawableStartCompat="@drawable/ic_arrow_up" />
<TextView
android:id="@+id/transferRepositoryOwnershipHint"
@ -120,13 +120,13 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/repoSettingsDelete"
android:drawableStart="@drawable/ic_delete"
android:drawablePadding="32dp"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp"
android:paddingTop="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp" />
android:paddingEnd="16dp"
app:drawableStartCompat="@drawable/ic_delete" />
<TextView
android:id="@+id/deleteRepositoryHint"

View File

@ -84,7 +84,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_inputs"
android:inputType="textMultiLine|textImeMultiLine"
android:inputType="textMultiLine|textImeMultiLine|textCapSentences"
android:maxLines="5"
android:padding="10dp"
android:scrollbars="vertical"