Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-05-02 01:30:53 +0300
committerStefan Niedermann <info@niedermann.it>2020-05-02 01:30:53 +0300
commit1391bedd6b9a33ad99edebe2b0282d91abbbd0b0 (patch)
tree2f4952f51a8526d8909d28af941d2abbefca8c39 /app/src/main/res/xml
parenta30ab4cb25198ddae4aa0e57b761d5d92be46021 (diff)
#762 Branding
Make a setting
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/preferences.xml144
1 files changed, 82 insertions, 62 deletions
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index 6611f0e9..3fc5b4f9 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -1,73 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+ <it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory
- <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
- android:defaultValue="@string/pref_value_lock"
- android:icon="@drawable/ic_lock_grey600_24dp"
- android:key="@string/pref_key_lock"
- android:layout="@layout/item_pref"
- android:summary="@string/simple_beta"
- android:title="@string/settings_lock" />
+ app:layout="@layout/item_preference_category"
+ app:title="@string/simple_synchronization">
- <ListPreference
- android:defaultValue="@string/pref_value_mode_edit"
- android:entries="@array/noteMode_entries"
- android:entryValues="@array/noteMode_values"
- android:icon="@drawable/ic_remove_red_eye_grey_24dp"
- android:key="@string/pref_key_note_mode"
- android:layout="@layout/item_pref"
- android:summary="%s"
- android:title="@string/settings_note_mode" />
+ <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
+ android:defaultValue="@string/pref_value_wifi_and_mobile"
+ android:icon="@drawable/ic_network_wifi_grey600_24dp"
+ android:key="@string/pref_key_wifi_only"
+ android:layout="@layout/item_pref"
+ android:title="@string/settings_wifi_only" />
- <ListPreference
- android:defaultValue="@string/pref_value_theme_system_default"
- android:entries="@array/darkmode_entries"
- android:entryValues="@array/darkMode_values"
- android:icon="@drawable/ic_brightness_2_grey_24dp"
- android:key="@string/pref_key_theme"
- android:layout="@layout/item_pref"
- android:summary="%s"
- android:title="@string/settings_theme_title" />
+ <ListPreference
+ android:defaultValue="@string/pref_value_sync_off"
+ android:entries="@array/sync_entries"
+ android:entryValues="@array/sync_values"
+ android:icon="@drawable/ic_sync_black_24dp"
+ android:key="@string/pref_key_background_sync"
+ android:layout="@layout/item_pref"
+ android:summary="%s"
+ android:title="@string/settings_background_sync" />
+ </it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory>
- <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
- android:defaultValue="true"
- android:icon="@drawable/ic_color_lens_grey600_24dp"
- android:key="@string/pref_key_branding"
- android:layout="@layout/item_pref"
- android:title="@string/settings_branding" />
+ <it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory
- <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
- android:defaultValue="@string/pref_value_font_normal"
- android:icon="@drawable/ic_text_format_grey600_24dp"
- android:key="@string/pref_key_font"
- android:layout="@layout/item_pref"
- android:title="@string/settings_font_title" />
+ app:layout="@layout/item_preference_category"
+ app:title="@string/simple_appearance">
- <ListPreference
- android:defaultValue="@string/pref_value_font_size_medium"
- android:entries="@array/fontSize_entries"
- android:entryValues="@array/fontSize_values"
- android:icon="@drawable/ic_format_size_black_24dp"
- android:key="@string/pref_key_font_size"
- android:layout="@layout/item_pref"
- android:summary="%s"
- android:title="@string/settings_font_size" />
+ <ListPreference
+ android:defaultValue="@string/pref_value_theme_system_default"
+ android:entries="@array/darkmode_entries"
+ android:entryValues="@array/darkMode_values"
+ android:icon="@drawable/ic_brightness_2_grey_24dp"
+ android:key="@string/pref_key_theme"
+ android:layout="@layout/item_pref"
+ android:summary="%s"
+ android:title="@string/settings_theme_title" />
- <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
- android:defaultValue="@string/pref_value_wifi_and_mobile"
- android:icon="@drawable/ic_network_wifi_grey600_24dp"
- android:key="@string/pref_key_wifi_only"
- android:layout="@layout/item_pref"
- android:title="@string/settings_wifi_only" />
+ <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
+ android:defaultValue="true"
+ android:icon="@drawable/ic_color_lens_grey600_24dp"
+ android:key="@string/pref_key_branding"
+ android:layout="@layout/item_pref"
+ android:title="@string/settings_branding" />
- <ListPreference
- android:defaultValue="@string/pref_value_sync_off"
- android:entries="@array/sync_entries"
- android:entryValues="@array/sync_values"
- android:icon="@drawable/ic_sync_black_24dp"
- android:key="@string/pref_key_background_sync"
- android:layout="@layout/item_pref"
- android:summary="%s"
- android:title="@string/settings_background_sync" />
+ </it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory>
+ <it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory
+ android:key="@string/pref_category_security"
+ app:layout="@layout/item_preference_category"
+ app:title="@string/simple_security">
+ <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
+ android:defaultValue="@string/pref_value_lock"
+ android:icon="@drawable/ic_lock_grey600_24dp"
+ android:key="@string/pref_key_lock"
+ android:layout="@layout/item_pref"
+ android:summary="@string/simple_beta"
+ android:title="@string/settings_lock" />
+ </it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory>
+ <it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory
+
+ app:layout="@layout/item_preference_category"
+ app:title="@string/simple_behavior">
+ <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference
+ android:defaultValue="@string/pref_value_font_normal"
+ android:icon="@drawable/ic_text_format_grey600_24dp"
+ android:key="@string/pref_key_font"
+ android:layout="@layout/item_pref"
+ android:title="@string/settings_font_title" />
+ <ListPreference
+ android:defaultValue="@string/pref_value_mode_edit"
+ android:entries="@array/noteMode_entries"
+ android:entryValues="@array/noteMode_values"
+ android:icon="@drawable/ic_remove_red_eye_grey_24dp"
+ android:key="@string/pref_key_note_mode"
+ android:layout="@layout/item_pref"
+ android:summary="%s"
+ android:title="@string/settings_note_mode" />
+
+ <ListPreference
+ android:defaultValue="@string/pref_value_font_size_medium"
+ android:entries="@array/fontSize_entries"
+ android:entryValues="@array/fontSize_values"
+ android:icon="@drawable/ic_format_size_black_24dp"
+ android:key="@string/pref_key_font_size"
+ android:layout="@layout/item_pref"
+ android:summary="%s"
+ android:title="@string/settings_font_size" />
+ </it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory>
</PreferenceScreen>