diff options
| -rw-r--r-- | android/src/main/res/drawable/cell_input_background.xml | 6 | ||||
| -rw-r--r-- | android/src/main/res/drawable/cell_input_cursor.xml | 6 | ||||
| -rw-r--r-- | android/src/main/res/layout/advanced.xml | 40 | ||||
| -rw-r--r-- | android/src/main/res/values/colors.xml | 1 | ||||
| -rw-r--r-- | android/src/main/res/values/strings.xml | 4 |
5 files changed, 57 insertions, 0 deletions
diff --git a/android/src/main/res/drawable/cell_input_background.xml b/android/src/main/res/drawable/cell_input_background.xml new file mode 100644 index 0000000000..a08eb4cbcc --- /dev/null +++ b/android/src/main/res/drawable/cell_input_background.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + + <corners android:radius="4dp" /> + <solid android:color="@color/white10" /> +</shape> diff --git a/android/src/main/res/drawable/cell_input_cursor.xml b/android/src/main/res/drawable/cell_input_cursor.xml new file mode 100644 index 0000000000..781c1d9b87 --- /dev/null +++ b/android/src/main/res/drawable/cell_input_cursor.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="@color/white" /> + <size android:width="1sp" + android:height="24sp" /> +</shape> diff --git a/android/src/main/res/layout/advanced.xml b/android/src/main/res/layout/advanced.xml index e22a1148ac..f5ae8b5f24 100644 --- a/android/src/main/res/layout/advanced.xml +++ b/android/src/main/res/layout/advanced.xml @@ -33,4 +33,44 @@ android:textSize="32sp" android:textStyle="bold" android:text="@string/settings_advanced" /> + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="24dp" + android:paddingHorizontal="16dp" + android:background="@drawable/cell_button_background" + android:gravity="center"> + <TextView android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingHorizontal="8dp" + android:paddingVertical="17dp" + android:textColor="@color/white" + android:textSize="20sp" + android:textStyle="bold" + android:text="@string/wireguard_mtu" /> + <EditText android:id="@+id/wireguard_mtu_input" + android:layout_width="80dp" + android:layout_height="34dp" + android:layout_weight="0" + android:paddingHorizontal="4dp" + android:background="@drawable/cell_input_background" + android:digits="0123456789" + android:inputType="number" + android:singleLine="true" + android:imeOptions="flagNoPersonalizedLearning" + android:textCursorDrawable="@drawable/cell_input_cursor" + android:gravity="center" + android:hint="@string/hint_default" + android:textColorHint="@color/white80" + android:textColor="@color/white" + android:textSize="20sp" + /> + </LinearLayout> + <TextView android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="8dp" + android:paddingHorizontal="24dp" + android:textColor="@color/white60" + android:textSize="13sp" + android:text="@string/wireguard_mtu_footer" /> </LinearLayout> diff --git a/android/src/main/res/values/colors.xml b/android/src/main/res/values/colors.xml index 0649c967e5..bc18d267f5 100644 --- a/android/src/main/res/values/colors.xml +++ b/android/src/main/res/values/colors.xml @@ -11,6 +11,7 @@ <color name="white60">#99FFFFFF</color> <color name="white40">#66FFFFFF</color> <color name="white20">#33FFFFFF</color> + <color name="white10">#1AFFFFFF</color> <color name="green">#44AD4D</color> <color name="green90">#E644AD4D</color> <color name="red">#FFE34039</color> diff --git a/android/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml index c1320d0e9d..13fbd3dd1c 100644 --- a/android/src/main/res/values/strings.xml +++ b/android/src/main/res/values/strings.xml @@ -55,6 +55,10 @@ <string name="auto_connect">Auto-connect</string> <string name="auto_connect_footer">Automatically connect to a server when the app launches.</string> + <string name="wireguard_mtu">WireGuard MTU</string> + <string name="wireguard_mtu_footer">Set WireGuard MTU value. Valid range: + 1280 - 1420.</string> + <string name="hint_default">Default</string> <string name="problem_report_description">To help you more effectively, your app\'s log file will be attached to this message. Your data will remain secure and private, as it is |
