<?xml version="1.0" encoding="utf-8"?>
<!--
/**
 * Copyright (C) 2017 AICP
 *
 * 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:settings="http://schemas.android.com/apk/res/com.android.settings"
    android:title="@string/recent_app_sidebar_style_title">

    <com.cherish.settings.preferences.SystemSettingSeekBarPreference
        android:key="recent_app_sidebar_scale_factor"
        android:title="@string/recent_app_sidebar_scale_title"
        android:defaultValue="100"
        android:max="160"
        settings:min="60"
        settings:interval="5"
        settings:units="%" />

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="recent_app_sidebar_disable_labels"
        android:title="@string/recent_app_sidebar_hide_labels_title"
        android:disableDependentsState="true"
        android:defaultValue="false" />

    <net.margaritov.preference.colorpicker.ColorPickerPreference
        android:key="recent_app_sidebar_text_color"
        android:title="@string/recent_app_sidebar_label_color_title"
        settings:defaultColorValue="0xffffffff"
        alphaSlider="false"
        android:dependency="recent_app_sidebar_disable_labels" />

    <net.margaritov.preference.colorpicker.ColorPickerPreference
        android:key="recent_app_sidebar_bg_color"
        android:title="@string/recent_app_sidebar_bg_color_title"
        settings:defaultColorValue="0x00ffffff"
        alphaSlider="true" />

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="recent_app_sidebar_open_simultaneously"
        android:title="@string/recent_app_sidebar_open_simultaneously_title"
        android:summary="@string/recent_app_sidebar_open_simultaneously_summary"
        android:defaultValue="true" />

</PreferenceScreen>
