diff options
author | schaarsc <schaarsc@users.noreply.github.com> | 2018-07-14 17:41:56 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2018-07-15 11:24:47 +0300 |
commit | 84c10d4784f6d3d217d350d91d1be04e19afe61b (patch) | |
tree | a034da38b840db10fcefeecb723d83b432346564 /app/src/main/res/xml | |
parent | c5d4c41f67c03196f22e36503db155641ed1bf73 (diff) |
refactor preference screen.
- grey icons
- remove categories
- move certificate entries to Preference Screen
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index ad0e3d92..b6ff1db7 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -1,31 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <PreferenceCategory android:title="@string/settings_server"> - <Preference android:title="@string/settings_server_settings"> - <intent - android:targetPackage="it.niedermann.owncloud.notes" - android:targetClass="it.niedermann.owncloud.notes.android.activity.SettingsActivity" /> - </Preference> - </PreferenceCategory> - <PreferenceCategory android:title="@string/settings_view_category"> - <ListPreference - android:defaultValue="@string/pref_value_mode_edit" - android:key="@string/pref_key_note_mode" - android:title="@string/settings_note_mode" - android:summary="%s" - android:entries="@array/noteMode_entries" - android:entryValues="@array/noteMode_values" /> + <Preference + android:icon="@drawable/ic_account_circle_grey_24dp" + android:title="@string/settings_server_settings"> + <intent + android:targetClass="it.niedermann.owncloud.notes.android.activity.SettingsActivity" + android:targetPackage="it.niedermann.owncloud.notes" /> + </Preference> - <SwitchPreference - android:defaultValue="@string/pref_value_theme_light" - android:key="@string/pref_key_theme" - android:title="@string/settings_theme_title" - android:summary="%s" - /> - </PreferenceCategory> + <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:summary="%s" + android:title="@string/settings_note_mode" /> - <PreferenceCategory android:title="@string/settings_cert_category"> + <SwitchPreference + android:defaultValue="@string/pref_value_theme_light" + android:icon="@drawable/ic_brightness_2_grey_24dp" + android:key="@string/pref_key_theme" + android:summary="%s" + android:title="@string/settings_theme_title" /> + + <PreferenceScreen + android:key="@string/pref_key_certs" + android:persistent="false" + android:icon="@drawable/ic_https_grey_24dp" + android:title="@string/settings_cert_category"> <CheckBoxPreference android:defaultValue="true" android:key="@string/pref_key_trust_system_certs" @@ -36,6 +40,6 @@ android:key="@string/pref_key_reset_trust" android:title="@string/settings_cert_reset" android:summary="@string/settings_cert_reset_summary" /> - </PreferenceCategory> + </PreferenceScreen> </PreferenceScreen> |