<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:title="@string/settings_category_appearance_title">

    <ListPreference
        android:defaultValue="@string/default_theme_value"
        android:entries="@array/theme_description_list"
        android:entryValues="@array/theme_values_list"
        android:key="@string/theme_key"
        android:summary="%s"
        android:title="@string/theme_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <ListPreference
        android:defaultValue="@string/default_night_theme_value"
        android:entries="@array/night_theme_description_list"
        android:entryValues="@array/night_theme_values_list"
        android:key="@string/night_theme_key"
        android:summary="@string/night_theme_summary"
        android:title="@string/night_theme_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <SwitchPreferenceCompat
        android:defaultValue="false"
        android:key="@string/enable_eye_protection_key"
        android:summary="@string/enable_eye_protection_summary"
        android:title="@string/enable_eye_protection_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <PreferenceScreen
        android:key="@string/player_notification_screen_key"
        android:fragment="org.schabi.newpipe.settings.PlayerNotificationSettingsFragment"
        android:summary="@string/settings_category_player_notification_summary"
        android:title="@string/settings_category_player_notification_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <SwitchPreferenceCompat
        android:defaultValue="true"
        android:key="@string/grid_layout_enabled_key"
        android:summary="@string/grid_layout_summary"
        android:title="@string/grid_layout_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <ListPreference
        android:defaultValue="2"
        android:dependency="@string/grid_layout_enabled_key"
        android:entries="@array/grid_columns_entries"
        android:entryValues="@array/grid_columns_values"
        android:key="@string/grid_columns_key"
        android:summary="%s"
        android:title="@string/grid_columns_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <ListPreference
        android:defaultValue="4"
        android:dependency="@string/grid_layout_enabled_key"
        android:entries="@array/grid_columns_entries"
        android:entryValues="@array/grid_columns_values"
        android:key="@string/grid_columns_landscape_key"
        android:summary="%s"
        android:title="@string/grid_columns_landscape_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <PreferenceScreen
        android:fragment="org.schabi.newpipe.settings.tabs.ChooseTabsFragment"
        android:key="@string/main_page_content_key"
        android:summary="@string/main_page_content_summary"
        android:title="@string/main_page_content"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <MultiSelectListPreference
        android:key="@string/video_tabs_key"
        android:summary="@string/video_tabs_summary"
        android:title="@string/video_tabs_title"
        android:entries="@array/video_tabs_description_list"
        android:entryValues="@array/video_tabs_value_list"
        android:defaultValue="@array/video_tabs_value_list"
        app:iconSpaceReserved="false"
        app:singleLineTitle="false" />

    <MultiSelectListPreference
        android:key="@string/show_channel_tabs_key"
        android:summary="@string/show_channel_tabs_summary"
        android:title="@string/show_channel_tabs"
        android:entries="@array/show_channel_tabs_description_list"
        android:entryValues="@array/show_channel_tabs_value_list"
        android:defaultValue="@array/show_channel_tabs_value_list"
        app:iconSpaceReserved="false"
        app:singleLineTitle="false" />

    <SwitchPreferenceCompat
        android:defaultValue="false"
        android:key="@string/main_tabs_position_key"
        android:summary="@string/main_tabs_position_summary"
        android:title="@string/main_tabs_position_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

</PreferenceScreen>
