<?xml version="1.0" encoding="utf-8"?>
<!--
 Copyright 2017 Brian Pellin, Jeremy Jamet / Kunzisoft.

 This file is part of KeePassDX.

  KeePassDX is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  KeePassDX is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with KeePassDX.  If not, see <http://www.gnu.org/licenses/>.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
        android:title="@string/application_appearance">

        <ListPreference
            android:key="@string/setting_style_key"
            android:title="@string/style_choose_title"
            android:summary="@string/style_choose_summary"
            android:defaultValue="@string/list_style_name_light"
            android:entries="@array/list_style_names"
            android:entryValues="@array/list_style_values_light" />
        <ListPreference
            android:key="@string/setting_style_brightness_key"
            android:title="@string/style_brightness_title"
            android:summary="@string/style_brightness_summary"
            android:defaultValue="@string/list_style_brightness_follow_system"
            android:entries="@array/list_style_brightness_names"
            android:entryValues="@array/list_style_brightness_values" />
        <com.kunzisoft.keepass.settings.preference.IconPackListPreference
            android:key="@string/setting_icon_pack_choose_key"
            android:title="@string/icon_pack_choose_title"
            android:summary="@string/icon_pack_choose_summary" />
        <SwitchPreferenceCompat
            android:key="@string/show_entry_colors_key"
            android:title="@string/show_entry_colors_title"
            android:summary="@string/show_entry_colors_summary"
            android:defaultValue="@bool/show_entry_colors_default"/>

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/nodes">

        <SwitchPreferenceCompat
            android:key="@string/hide_expired_entries_key"
            android:title="@string/hide_expired_entries_title"
            android:summary="@string/hide_expired_entries_summary"
            android:defaultValue="@bool/hide_expired_entries_default"/>
        <SwitchPreferenceCompat
            android:key="@string/hide_templates_key"
            android:title="@string/hide_templates_title"
            android:summary="@string/hide_templates_summary"
            android:defaultValue="@bool/hide_templates_default"/>

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/password">

        <SwitchPreferenceCompat
            android:key="@string/hide_password_key"
            android:title="@string/hide_password_title"
            android:summary="@string/hide_password_summary"
            android:defaultValue="@bool/hide_password_default"/>
        <SwitchPreferenceCompat
            android:key="@string/colorize_password_key"
            android:title="@string/colorize_password_title"
            android:summary="@string/colorize_password_summary"
            android:defaultValue="@bool/colorize_password_default"/>

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/text_appearance">

        <SwitchPreferenceCompat
            android:key="@string/list_entries_show_username_key"
            android:title="@string/list_entries_show_username_title"
            android:summary="@string/list_entries_show_username_summary"
            android:defaultValue="@bool/list_entries_show_username_default"/>
        <SwitchPreferenceCompat
            android:key="@string/list_groups_show_number_entries_key"
            android:title="@string/list_groups_show_number_entries_title"
            android:summary="@string/list_groups_show_number_entries_summary"
            android:defaultValue="@bool/list_groups_show_number_entries_default"/>
        <SwitchPreferenceCompat
            android:key="@string/recursive_number_entries_key"
            android:dependency="@string/list_groups_show_number_entries_key"
            android:title="@string/recursive_number_entries_title"
            android:summary="@string/recursive_number_entries_summary"
            android:defaultValue="@bool/recursive_number_entries_default"/>
        <SwitchPreferenceCompat
            android:key="@string/show_otp_token_key"
            android:title="@string/show_otp_token_title"
            android:summary="@string/show_otp_token_summary"
            android:defaultValue="@bool/show_otp_token_default"/>
        <SwitchPreferenceCompat
            android:key="@string/show_uuid_key"
            android:title="@string/show_uuid_title"
            android:summary="@string/show_uuid_summary"
            android:defaultValue="@bool/show_uuid_default"/>
        <ListPreference
            android:key="@string/list_size_key"
            android:title="@string/list_size_title"
            android:summary="@string/list_size_summary"
            android:entries="@array/list_size_options"
            android:entryValues="@array/list_size_string_values"
            android:dialogTitle="@string/list_size_summary"
            android:defaultValue="@string/list_size_string_medium"/>
        <SwitchPreferenceCompat
            android:key="@string/monospace_font_fields_enable_key"
            android:title="@string/monospace_font_fields_enable_title"
            android:summary="@string/monospace_font_fields_enable_summary"
            android:defaultValue="@bool/monospace_font_fields_enable_default"/>

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/other">

        <SwitchPreferenceCompat
            android:key="@string/enable_education_screens_key"
            android:title="@string/enable_education_screens_title"
            android:summary="@string/enable_education_screens_summary"
            android:defaultValue="@bool/enable_education_screens_default"/>
        <Preference
            android:key="@string/reset_education_screens_key"
            android:title="@string/reset_education_screens_title"
            android:summary="@string/reset_education_screens_summary"/>

    </PreferenceCategory>

</PreferenceScreen>
