<!--
  ~ Copyright (c) 2023 Samson Achiaga
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <PreferenceCategory app:title="@string/display">

        <ListPreference
            app:defaultValue="@string/default_theme"
            app:dialogTitle="@string/choose_theme"
            app:entries="@array/pref_theme"
            app:entryValues="@array/pref_theme_values"
            app:icon="@drawable/ic_brightness_medium_black_24dp"
            app:key="@string/key_theme"
            app:title="@string/theme"
            app:useSimpleSummaryProvider="true" />

    </PreferenceCategory>

    <PreferenceCategory app:title="@string/about">
        <Preference
            android:icon="@drawable/ic_person_black_24"
            app:summary="@string/developer_nick"
            app:title="@string/developer">
            <intent
                android:action="android.intent.action.VIEW"
                android:data="https://github.com/antartica" />
        </Preference>

        <Preference
            android:icon="@drawable/ic_code_black_24dp"
            app:summary="@string/contribute_summary"
            app:title="@string/contribute">
            <intent
                android:action="android.intent.action.VIEW"
                android:data="https://github.com/antartica/AudioNote" />
        </Preference>

        <Preference
            android:icon="@drawable/ic_contact_support_black_24dp"
            app:summary="@string/developer_mail"
            app:title="@string/contact_feedback">
            <intent
                android:action="android.intent.action.SENDTO"
                android:data="mailto:antartica@whereismaybit.com?subject=Feedback+Audio+Note" />
        </Preference>

<!--        <Preference-->
<!--            android:icon="@drawable/ic_info_black_24dp"-->
<!--            app:summary="@string/app_version_licence_and_more"-->
<!--            app:title="@string/about">-->
<!--            <intent-->
<!--                android:action="android.intent.action.VIEW"-->
<!--                android:data="https://github.com/certified84/AudioNote" />-->
<!--        </Preference>-->
    </PreferenceCategory>

</PreferenceScreen>