<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 Nitrogen 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/statusbar_title"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
	
       <PreferenceCategory
            android:key="label"
            android:title="@string/label_title">

	<Preference
            android:key="carrier_label"
            android:icon="@drawable/ic_carrierlabel"
            android:title="@string/carrier_label_settings_title"
            android:summary="@string/carrier_label_settings_summary"
            android:fragment="com.cherish.settings.fragments.CustomCarrierLabel" />
 
        </PreferenceCategory>

	<PreferenceCategory
            android:key="status_bar_icons"
            android:title="@string/status_bar_system_icons_title">
			
	<com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="show_fourg_icon"
            android:icon="@drawable/ic_4g"
            android:title="@string/show_fourg_icon_title"
            android:summary="@string/show_fourg_icon_summary"
            android:defaultValue="false"/>
    
        <com.cherish.settings.preferences.SystemSettingSwitchPreference
         android:key="use_old_mobiletype"
         android:icon="@drawable/ic_4g_old"
         android:title="@string/use_old_mobiletype_title"
         android:summary="@string/use_old_mobiletype_summary"
         android:defaultValue="false" />

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="volte_icon"
            android:icon="@drawable/ic_volte"
            android:title="@string/volte_icon_title"
            android:summary="@string/volte_icon_summary"
            android:defaultValue="true"/>

      	<com.cherish.settings.preferences.SystemSettingListPreference
            android:key="volte_icon_style"
            android:icon="@drawable/ic_4g_volte"
            android:title="@string/volte_icon_style_title"
            android:entries="@array/volte_icon_type_entries"
            android:entryValues="@array/volte_icon_type_values"
            android:dependency="volte_icon"
            android:summary="%s"
            android:defaultValue="0"/>

        <com.cherish.settings.preferences.SystemSettingListPreference
         android:key="vowifi_icon"
         android:icon="@drawable/ic_vowifi"
         android:title="@string/vowifi_icon_title"
         android:entries="@array/vowifi_icon_entries"
         android:entryValues="@array/vowifi_icon_values"
         android:summary="%s"
         android:defaultValue="0"/>

         <com.cherish.settings.preferences.SystemSettingListPreference
         android:key="vowifi_icon_style"
         android:icon="@drawable/ic_vowifi"
         android:title="@string/vowifi_icon_style_title"
         android:entries="@array/vowifi_icon_style_entries"
         android:entryValues="@array/vowifi_icon_style_values"
         android:summary="%s"
         android:defaultValue="0"/>

    <Preference
            android:title="@string/statusbar_items_title" 
            android:icon="@drawable/ic_shortcuts">
            <intent android:action="android.intent.action.MAIN"
                android:targetPackage="com.android.systemui"
                android:targetClass="com.android.systemui.tuner.StatusbarItemsActivity" />
    </Preference>

<com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="network_traffic_state"
		android:icon="@drawable/ic_network_traffic"
        android:title="@string/network_traffic_state_title"
        android:defaultValue="false" />

    <com.cherish.settings.preferences.CustomSeekBarPreference
        android:key="network_traffic_autohide_threshold"
		android:icon="@drawable/ic_network_traffic"
        android:title="@string/network_traffic_autohide_threshold_title"
        android:max="10"
        settings:min="0"
        settings:units="" />

   <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="network_traffic_hidearrow"
        android:title="@string/network_traffic_hidearrow"
	android:icon="@drawable/ic_arrow"
        android:summary="@string/network_traffic_hidearrow_summary"
        android:dependency="network_traffic_state"
        android:defaultValue="false" />

<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
        android:key="status_bar_clock"
        android:icon="@drawable/ic_clock"
        android:fragment="com.cherish.settings.fragments.ClockSettings" 
        android:title="@string/status_bar_clock_title"
        android:summary="@string/status_bar_clock_summary"
        android:defaultValue="true" />

		</PreferenceCategory>

     <PreferenceCategory

        android:key="battery_style_category"
        android:title="@string/battery_style_category_title" >

       <com.cherish.settings.preferences.SystemSettingListPreference
            android:key="status_bar_battery_style"
            android:icon="@drawable/ic_battery_styles"
            android:title="@string/status_bar_battery_style_title"
            android:summary="%s"
            android:dialogTitle="@string/status_bar_battery_style_title"
            android:entries="@array/status_bar_battery_style_entries"
            android:entryValues="@array/status_bar_battery_style_values"
            android:defaultValue="0" />

       <com.cherish.settings.preferences.SystemSettingListPreference
            android:key="status_bar_show_battery_percent"
            android:icon="@drawable/ic_battery_percent"
            android:title="@string/battery_percent_title"
            android:dialogTitle="@string/battery_percent_title"
            android:entries="@array/battery_percent_entries"
            android:entryValues="@array/battery_percent_values"
            android:defaultValue="0" />

       <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:icon="@drawable/ic_battery_charging"
            android:key="status_bar_battery_text_charging"
            android:title="@string/status_bar_battery_text_charging_title"
            android:summary="@string/status_bar_battery_text_charging_summary"
            android:defaultValue="true" />

    </PreferenceCategory>
</PreferenceScreen> 