From 09b28358abddadefe27dfa85b933ec8b0043c500 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 20 Feb 2023 21:44:48 +0100 Subject: [PATCH] add more sample settings --- .../conversations/android/Conversations.java | 2 +- .../res/drawable/ic_keyboard_return_24dp.xml | 11 +++++ .../main/res/drawable/ic_screenshot_24dp.xml | 10 ++++ .../ic_vertical_align_bottom_24dp.xml | 10 ++++ .../main/res/values-v29/theme-settings.xml | 2 +- app/src/main/res/values/defaults.xml | 6 +++ app/src/main/res/values/strings.xml | 8 +-- app/src/main/res/values/theme-settings.xml | 2 +- .../main/res/xml/preferences_interface.xml | 49 ++++++++++++++----- 9 files changed, 80 insertions(+), 20 deletions(-) create mode 100644 app/src/main/res/drawable/ic_keyboard_return_24dp.xml create mode 100644 app/src/main/res/drawable/ic_screenshot_24dp.xml create mode 100644 app/src/main/res/drawable/ic_vertical_align_bottom_24dp.xml create mode 100644 app/src/main/res/values/defaults.xml diff --git a/app/src/main/java/im/conversations/android/Conversations.java b/app/src/main/java/im/conversations/android/Conversations.java index ab7af6150..588e12c05 100644 --- a/app/src/main/java/im/conversations/android/Conversations.java +++ b/app/src/main/java/im/conversations/android/Conversations.java @@ -70,7 +70,7 @@ public class Conversations extends Application { private static int getDesiredNightMode( final Context context, final SharedPreferences sharedPreferences) { final String theme = - sharedPreferences.getString("theme", context.getString(R.string.theme)); + sharedPreferences.getString("theme", context.getString(R.string.default_theme)); return getDesiredNightMode(theme); } diff --git a/app/src/main/res/drawable/ic_keyboard_return_24dp.xml b/app/src/main/res/drawable/ic_keyboard_return_24dp.xml new file mode 100644 index 000000000..14459fd38 --- /dev/null +++ b/app/src/main/res/drawable/ic_keyboard_return_24dp.xml @@ -0,0 +1,11 @@ + + + diff --git a/app/src/main/res/drawable/ic_screenshot_24dp.xml b/app/src/main/res/drawable/ic_screenshot_24dp.xml new file mode 100644 index 000000000..36613a306 --- /dev/null +++ b/app/src/main/res/drawable/ic_screenshot_24dp.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_vertical_align_bottom_24dp.xml b/app/src/main/res/drawable/ic_vertical_align_bottom_24dp.xml new file mode 100644 index 000000000..a109ece68 --- /dev/null +++ b/app/src/main/res/drawable/ic_vertical_align_bottom_24dp.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/values-v29/theme-settings.xml b/app/src/main/res/values-v29/theme-settings.xml index 5cd93386f..ce6c2f243 100644 --- a/app/src/main/res/values-v29/theme-settings.xml +++ b/app/src/main/res/values-v29/theme-settings.xml @@ -1,7 +1,7 @@ - automatic + automatic @string/pref_theme_automatic @string/pref_theme_light diff --git a/app/src/main/res/values/defaults.xml b/app/src/main/res/values/defaults.xml new file mode 100644 index 000000000..27d80b376 --- /dev/null +++ b/app/src/main/res/values/defaults.xml @@ -0,0 +1,6 @@ + + + true + false + true + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1fb076f4d..8c42360f3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -130,8 +130,7 @@ By sending in stack traces you are helping the development Confirm Messages Let your contacts know when you have received and read their messages - Prevent Screenshots - Hide app contents in the app switcher and block screenshots + Show app content in app switcher and allow screenshots to be taken UI OpenKeychain produced an error. Bad key for encryption. @@ -410,7 +409,7 @@ Mark as read Input Enter is send - Use Enter key to send message. You can always use Ctrl+Enter to send message, even if this option is disabled. + Use Enter (instead of Ctrl+Enter) to send message Show enter key Change the emoticons key to an enter key audio @@ -1018,7 +1017,7 @@ Spaces Chats Interface - + Theme, Colors, Screenshots, Input Security Encryption, Blind Trust Before Verification, MIM Detection Notification relay for UnifiedPush compatible third party apps @@ -1026,5 +1025,6 @@ System colors (Material You) Light/dark mode Appearance + Allow screenshots diff --git a/app/src/main/res/values/theme-settings.xml b/app/src/main/res/values/theme-settings.xml index b770b1b26..580bb3c9d 100644 --- a/app/src/main/res/values/theme-settings.xml +++ b/app/src/main/res/values/theme-settings.xml @@ -1,7 +1,7 @@ - light + light @string/pref_theme_light @string/pref_theme_dark diff --git a/app/src/main/res/xml/preferences_interface.xml b/app/src/main/res/xml/preferences_interface.xml index b0166d1c0..5cdc9e6f6 100644 --- a/app/src/main/res/xml/preferences_interface.xml +++ b/app/src/main/res/xml/preferences_interface.xml @@ -2,18 +2,41 @@ - - + + + + + + + + + + \ No newline at end of file