From ecf87c58e16692570f080d3216e3d3923eff9182 Mon Sep 17 00:00:00 2001 From: bjoern Date: Thu, 26 Sep 2024 17:09:39 +0100 Subject: [PATCH] tweak proxy UI (#3322) * use string 'Saved Proxies' as header for proxy settings 'Connections' is a bit broad, also there is only one connection. 'Saved Proxies' is also what Telegram is using. * move proxy settings in 'Advanced' down logically, this seems to be a better fit. Account/Password is still the most important bit, even if not directly needed in chatmail and Proxy is used more often. * add proxy settings icon to main screen * use 'cable' instead of 'shield'. things are rewired, but not more protected or secured. --- src/main/res/drawable/baseline_proxy_24.xml | 5 +++++ src/main/res/menu/text_secure_normal.xml | 14 ++++++++------ src/main/res/values/strings.xml | 2 +- src/main/res/xml/preferences_advanced.xml | 6 +++--- 4 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 src/main/res/drawable/baseline_proxy_24.xml diff --git a/src/main/res/drawable/baseline_proxy_24.xml b/src/main/res/drawable/baseline_proxy_24.xml new file mode 100644 index 000000000..5064d8920 --- /dev/null +++ b/src/main/res/drawable/baseline_proxy_24.xml @@ -0,0 +1,5 @@ + + + diff --git a/src/main/res/menu/text_secure_normal.xml b/src/main/res/menu/text_secure_normal.xml index 66d0a9e7f..7d91be718 100644 --- a/src/main/res/menu/text_secure_normal.xml +++ b/src/main/res/menu/text_secure_normal.xml @@ -5,12 +5,7 @@ - - + app:showAsAction="ifRoom"/> @@ -26,6 +21,13 @@ android:visible="false" /> + + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index c31bd6c1f..4b8e7042e 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -612,7 +612,7 @@ Supported proxy types: HTTP(S), SOCKS5 and Shadowsocks. Enter proxy URL here Invalid or unsupported proxy URL - Connections + Saved Proxies Delete Proxy Are you sure you want to delete \"%1$s\"? diff --git a/src/main/res/xml/preferences_advanced.xml b/src/main/res/xml/preferences_advanced.xml index 0c90f637d..92e00fdbb 100644 --- a/src/main/res/xml/preferences_advanced.xml +++ b/src/main/res/xml/preferences_advanced.xml @@ -90,12 +90,12 @@ - - + +