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

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-04-17 21:29:00 +0300
committerStefan Niedermann <info@niedermann.it>2020-04-17 21:29:00 +0300
commit9ce1517b6f5a031ff93137f12fee18515c126eab (patch)
tree05e748a9df66d53361a14776c3c3de0ec1040d21 /app/src/main/res/xml
parentbfb2e2f60d7362c7e7e4cedb0889292aa48331a4 (diff)
#317 Adjust theme for each account
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/settings.xml47
1 files changed, 28 insertions, 19 deletions
diff --git a/app/src/main/res/xml/settings.xml b/app/src/main/res/xml/settings.xml
index 69249ec38..0fe560a34 100644
--- a/app/src/main/res/xml/settings.xml
+++ b/app/src/main/res/xml/settings.xml
@@ -1,24 +1,33 @@
<?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.nextcloud.deck.ui.branding.BrandedPreferenceCategory app:title="@string/simple_synchronization">
+ <it.niedermann.nextcloud.deck.ui.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:title="@string/pref_value_wifi_only" />
- <it.niedermann.nextcloud.deck.ui.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:title="@string/pref_value_wifi_only" />
+ <ListPreference
+ android:defaultValue="@string/minutes_15"
+ android:entries="@array/background_sync_entries"
+ android:entryValues="@array/background_sync_values"
+ android:icon="@drawable/ic_sync_grey600_24dp"
+ android:key="@string/pref_key_background_sync"
+ android:summary="%s"
+ android:title="@string/settings_background_sync" />
+ </it.niedermann.nextcloud.deck.ui.branding.BrandedPreferenceCategory>
- <ListPreference
- android:defaultValue="@string/minutes_15"
- android:entries="@array/background_sync_entries"
- android:entryValues="@array/background_sync_values"
- android:icon="@drawable/ic_sync_grey600_24dp"
- android:key="@string/pref_key_background_sync"
- android:summary="%s"
- android:title="@string/settings_background_sync" />
+ <it.niedermann.nextcloud.deck.ui.branding.BrandedPreferenceCategory android:title="@string/simple_appearance">
+ <it.niedermann.nextcloud.deck.ui.branding.BrandedSwitchPreference
+ android:defaultValue="@string/pref_value_theme_light"
+ android:icon="@drawable/ic_brightness_2_grey600_24dp"
+ android:key="@string/pref_key_dark_theme"
+ android:title="@string/settings_theme_title" />
- <it.niedermann.nextcloud.deck.ui.branding.BrandedSwitchPreference
- android:defaultValue="@string/pref_value_theme_light"
- android:icon="@drawable/ic_brightness_2_grey600_24dp"
- android:key="@string/pref_key_dark_theme"
- android:title="@string/settings_theme_title" />
+ <it.niedermann.nextcloud.deck.ui.branding.BrandedSwitchPreference
+ android:icon="@drawable/ic_format_paint_grey600_24dp"
+ android:key="@string/pref_key_branding"
+ android:title="@string/settings_branding_title" />
+ </it.niedermann.nextcloud.deck.ui.branding.BrandedPreferenceCategory>
</PreferenceScreen>