<?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">

	<org.koitharu.kotatsu.settings.utils.ThemeChooserPreference
		android:key="color_theme"
		android:title="@string/color_theme"
		app:isPreferenceVisible="@bool/is_color_themes_available" />

	<ListPreference
		android:defaultValue="-1"
		android:entries="@array/themes"
		android:entryValues="@array/values_theme"
		android:key="theme"
		android:title="@string/theme"
		app:useSimpleSummaryProvider="true" />

	<SwitchPreferenceCompat
		android:defaultValue="false"
		android:key="amoled_theme"
		android:summary="@string/black_dark_theme_summary"
		android:title="@string/black_dark_theme" />

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

		<ListPreference
			android:entries="@array/list_modes"
			android:key="list_mode_2"
			android:title="@string/list_mode"
			app:useSimpleSummaryProvider="true" />

		<org.koitharu.kotatsu.settings.utils.SliderPreference
			android:key="grid_size"
			android:stepSize="5"
			android:title="@string/grid_size"
			android:valueFrom="50"
			android:valueTo="150"
			app:defaultValue="100" />

		<SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="reading_indicators"
			android:summary="@string/show_reading_indicators_summary"
			android:title="@string/show_reading_indicators" />

	</PreferenceCategory>

	<PreferenceScreen
		android:fragment="org.koitharu.kotatsu.settings.nav.NavConfigFragment"
		android:key="nav_main"
		android:title="@string/main_screen_sections"
		app:allowDividerAbove="true" />

	<org.koitharu.kotatsu.settings.utils.ActivityListPreference
		android:key="app_locale"
		android:title="@string/language" />

	<SwitchPreferenceCompat
		android:defaultValue="false"
		android:key="exit_confirm"
		android:summary="@string/exit_confirmation_summary"
		android:title="@string/exit_confirmation" />

</PreferenceScreen>
