diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-03-20 00:54:03 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-03-30 16:46:26 +0000 |
| commit | 8293af0dfde4fc3b1e2be9bd682593e2c3a8cfa0 (patch) | |
| tree | bcc4fa4a9eb6d4f58cd10778f1b0d54695ce4b78 /android/src/main/res | |
| parent | 35467c10e3e21eabab70127e688e39c554b75ff7 (diff) | |
| download | mullvadvpn-8293af0dfde4fc3b1e2be9bd682593e2c3a8cfa0.tar.xz mullvadvpn-8293af0dfde4fc3b1e2be9bd682593e2c3a8cfa0.zip | |
Add `WireGuard MTU` setting to Advanced settings
Diffstat (limited to 'android/src/main/res')
| -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 |
