<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS Project

     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"
    android:title="@string/quicksettings_title"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">

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

    <com.cherish.settings.preferences.SystemSettingListPreference
        android:key="qs_panel_bg_use_new_tint"
	android:icon="@drawable/ic_color"
        android:title="@string/qs_bg_use_new_tint"
		android:dialogTitle="@string/qs_bg_use_new_tint"
            android:entries="@array/qs_tint_entries"
	    android:entryValues="@array/qs_tint_values"
        android:summary="@string/qs_bg_use_new_tint_summary"
        android:defaultValue="2" />
			
	<com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="qs_media_player"
		android:icon="@drawable/ic_music"
        android:title="@string/qs_media_player_title"
        android:summaryOn="@string/qs_media_player_summary_on"
        android:summaryOff="@string/qs_media_player_summary_off"
        android:defaultValue="false" />

   <com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
            android:key="status_bar_custom_header"
            android:icon="@drawable/ic_header"
            android:fragment="com.cherish.settings.fragments.QsHeader"
            android:title="@string/status_bar_custom_header_title"
            android:summary="@string/status_bar_custom_header_summary"
            android:defaultValue="false" />

   <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="omni_footer_text_show"
        android:icon="@drawable/ic_edit_show"
        android:title="@string/qs_footer_text_title"
        android:summary="@string/qs_footer_text_summary"
        android:defaultValue="false"/>

    <!-- QS footer text string -->
    <com.cherish.settings.preferences.SystemSettingEditTextPreference
        android:key="footer_text_string"
        android:icon="@drawable/ic_edit1"
        android:title="@string/qs_footer_text_string_title"
        android:summary="@string/qs_footer_text_string_summary"
        android:dependency="omni_footer_text_show"
        android:defaultValue="#KeeptheLove" />

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="qs_edit_toggle"
        android:icon="@drawable/ic_edit"
        android:title="@string/qs_edit_title"
        android:summary="@string/qs_edit_summary"
        android:defaultValue="true" />

   <com.cherish.settings.preferences.SystemSettingListPreference 
        android:key="qs_datausage" 
        android:icon="@drawable/ic_data"
        android:title="@string/qs_datausage_title" 
        android:entries="@array/qs_datausage_entries"
        android:entryValues="@array/qs_datausage_values"
        android:defaultValue="0" />
		
	<com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="qs_running_services_toggle"
            android:title="@string/qs_running_services_title"
            android:summary="@string/qs_running_services_summary"
            android:defaultValue="false" />
	</PreferenceCategory>

   <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="notification_material_dismiss"
        android:icon="@drawable/ic_notification_clear_all"
        android:title="@string/enable_clear_all_button"
        android:summary="@string/enable_clear_all_button_summary"
        android:defaultValue="false" />

   <PreferenceCategory
        android:title="@string/qs_show_brightness_slider_title">
	
	<com.cherish.settings.preferences.SecureSettingListPreference
        android:key="qs_show_brightness_slider"
        android:title="@string/qs_show_brightness_slider_title"
        android:summary="%s"
        android:dialogTitle="@string/qs_show_brightness_slider_title"
        android:entries="@array/qs_show_brightness_slider_entries"
        android:entryValues="@array/qs_show_brightness_slider_values"
        android:defaultValue="1" />
		
		<com.cherish.settings.preferences.SecureSettingListPreference
            android:key="qqs_show_brightness_slider"
            android:title="@string/qqs_brightness_slider_title"
            android:entries="@array/qs_show_brightness_slider_values"
            android:entryValues="@array/qs_show_brightness_slider_values"
            android:summary="%s"
            android:defaultValue="2" />

       <com.cherish.settings.preferences.SecureSettingSwitchPreference
            android:key="qs_brightness_position_bottom"
            android:icon="@drawable/ic_brightness"
            android:title="@string/qs_brightness_position_bottom_title"
            android:summary="@string/qs_brightness_position_bottom_summary"
            android:defaultValue="false" />

    <com.cherish.settings.preferences.SecureSettingSwitchPreference
        android:key="qs_show_auto_brightness"
        android:icon="@drawable/ic_brightness"
        android:title="@string/qs_show_auto_brightness_title"
        android:summary="@string/qs_show_auto_brightness_summary"
        android:defaultValue="true" />

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="status_bar_brightness_control"
        android:icon="@drawable/ic_brightness"
        android:title="@string/status_bar_toggle_brightness"
        android:summary="@string/status_bar_toggle_brightness_summary"
        android:defaultValue="false" />

       </PreferenceCategory>

     <PreferenceCategory
        android:key="qs_columns_rows_category"
        android:title="@string/qs_columns_rows_category_title">

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="qs_tile_title_visibility"
        android:icon="@drawable/ic_qs_tile"
        android:title="@string/qs_tile_title_visibility_title"
        android:defaultValue="true" />

        <com.cherish.settings.preferences.CustomSystemSeekBarPreference
            android:key="qs_rows_portrait"
            android:title="@string/qs_rows_portrait_title"
            android:max="5"
            android:min="1"
            android:defaultValue="3"
            settings:units="" />

        <com.cherish.settings.preferences.CustomSystemSeekBarPreference
            android:key="qs_rows_landscape"
            android:title="@string/qs_rows_landscape_title"
            android:max="5"
            android:min="1"
            android:defaultValue="1"
            settings:units="" />

        <com.cherish.settings.preferences.CustomSystemSeekBarPreference
            android:key="qs_columns_portrait"
            android:title="@string/qs_columns_portrait_title"
            android:max="7"
            android:min="1"
            android:defaultValue="4"
            settings:units="" />

        <com.cherish.settings.preferences.CustomSystemSeekBarPreference
            android:key="qs_columns_landscape"
            android:title="@string/qs_columns_landscape_title"
            android:max="9"
            android:min="1"
            android:defaultValue="4"
            settings:units="" />

        </PreferenceCategory>
		
	<!-- Battery percent -->
    <com.cherish.settings.preferences.SystemSettingListPreference
        android:key="qs_show_battery_percent"
		android:icon="@drawable/ic_battery_percent"
        android:title="@string/battery_percentage_title"
        android:entries="@array/battery_percent_entries"
        android:entryValues="@array/battery_percent_values"
        android:defaultValue="0" />

    <!-- Battery estimate -->
    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="qs_show_battery_estimate"
		android:icon="@drawable/ic_battery_percent"
        android:title="@string/battery_estimate_title"
        android:summary="@string/battery_estimate_summary"
        android:defaultValue="true" />

       <!-- QS Quick Pull Down -->
    <com.cherish.settings.preferences.SecureSettingSwitchPreference
        android:key="status_bar_quick_qs_pulldown"
        android:icon="@drawable/ic_pulldown"
        android:title="@string/quick_settings_quick_pull_down_title"
        android:summary="@string/quick_settings_quick_pull_down_summary"
        android:defaultValue="true" />

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="status_bar_locked_on_secure_keyguard"
            android:icon="@drawable/ic_lock_outline"
            android:title="@string/lockscreen_qs_disabled_title"
            android:summary="@string/lockscreen_qs_disabled_summary"
            android:defaultValue="false" />

        <com.cherish.settings.preferences.SecureSettingSwitchPreference
            android:key="quick_settings_vibrate"
		    android:icon="@drawable/ic_vibrate"
            android:title="@string/quick_settings_vibrate_title"
            android:summary="@string/quick_settings_vibrate_summary"
            android:defaultValue="false"/>

</PreferenceScreen>
