<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2019-2022 The CherishOS Projects
     SPDX-License-Identifier: Apache-2.0
-->
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
    android:title="@string/status_bar_clock_title">

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="status_bar_clock_auto_hide_launcher"
        android:title="@string/status_bar_clock_auto_hide_title"
        android:summary="@string/status_bar_clock_auto_hide_launcher_summary"
        android:defaultValue="false" />

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="status_bar_clock_auto_hide"
        android:title="@string/status_bar_clock_auto_hide_title"
        android:summary="@string/status_bar_clock_auto_hide_summary"
        android:defaultValue="false" />

    <com.cherish.settings.preferences.SystemSettingSeekBarPreference
        android:key="status_bar_clock_auto_hide_hduration"
        android:title="@string/status_bar_clock_auto_hide_hdur_title"
        android:summary="@string/status_bar_clock_auto_hide_hdur_summary"
        android:max="300"
        settings:min="5"
        settings:interval="5"
        android:dependency="status_bar_clock_auto_hide"
        android:defaultValue="60"
        settings:units="@string/unit_seconds" />

    <com.cherish.settings.preferences.SystemSettingSeekBarPreference
        android:key="status_bar_clock_auto_hide_sduration"
        android:title="@string/status_bar_clock_auto_hide_sdur_title"
        android:summary="@string/status_bar_clock_auto_hide_sdur_summary"
        android:max="300"
        settings:min="5"
        settings:interval="5"
        android:dependency="status_bar_clock_auto_hide"
        android:defaultValue="5"
        settings:units="@string/unit_seconds" />

    <com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="status_bar_clock_seconds"
        android:title="@string/status_bar_clock_seconds_title"
        android:summary="@string/status_bar_clock_seconds_summary"
        android:defaultValue="false" />

    <com.cherish.settings.preferences.SystemSettingListPreference
        android:key="status_bar_am_pm"
        android:title="@string/status_bar_am_pm_title"
        android:summary="%s"
        android:dialogTitle="@string/status_bar_am_pm_title"
        android:entries="@array/status_bar_am_pm_entries"
        android:entryValues="@array/status_bar_am_pm_values"
        android:defaultValue="2" />

    <com.cherish.settings.preferences.SystemSettingSeekBarPreference
        android:key="status_bar_clock_size"
        android:title="@string/clock_font_size_title"
        android:max="20"
        settings:min="4"
        settings:interval="1"
        android:defaultValue="14"
        settings:units="@string/unit_pixels" />

    <com.cherish.settings.preferences.SystemSettingListPreference
        android:key="status_bar_clock_date_display"
        android:title="@string/status_bar_date_title"
        android:entries="@array/status_bar_date_entries"
        android:entryValues="@array/status_bar_date_values"
        android:defaultValue="0" />

    <com.cherish.settings.preferences.SystemSettingListPreference
        android:key="status_bar_clock_date_position"
        android:title="@string/clock_date_position"
        android:entries="@array/clock_date_position_entries"
        android:entryValues="@array/clock_date_position_values"
        android:defaultValue="0" />

    <com.cherish.settings.preferences.SystemSettingListPreference
        android:key="status_bar_clock_date_style"
        android:title="@string/status_bar_date_style"
        android:entries="@array/status_bar_date_style_entries"
        android:entryValues="@array/status_bar_date_style_values"
        android:defaultValue="0" />

    <ListPreference
        android:key="status_bar_clock_date_format"
        android:title="@string/status_bar_date_format_title"
        android:entries="@array/status_bar_date_format_entries_values"
        android:entryValues="@array/status_bar_date_format_entries_values" />
</PreferenceScreen>