This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
android_packages_apps_Cherish/res/xml/clock_settings.xml
ZeNiXxX c2dc90c18c QS-Clock: Clock size & Clock Colors options [2/2]
Few Addons in the commit -

1. Separate SB & Qs Clock Styling
2. Beautify n Categorize it
3. This one is for Inteded Pun

Change-Id: Icc501b6c6872b14ce21d8bc7d0632c71deb360f7
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2021-07-05 01:56:28 +07:00

149 lines
6.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 The 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"
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"
android:icon="@drawable/ic_clock"
android:title="@string/status_bar_clock_show"
android:defaultValue="true" />
<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:max="300"
settings:min="5"
settings:interval="5"
settings:units="sec"
android:dependency="status_bar_clock_auto_hide"
android:defaultValue="60" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="status_bar_clock_auto_hide_sduration"
android:title="@string/status_bar_clock_auto_hide_sdur_title"
android:max="300"
settings:min="5"
settings:interval="5"
settings:units="sec"
android:dependency="status_bar_clock_auto_hide"
android:defaultValue="5" />
<ListPreference
android:key="statusbar_clock_style"
android:title="@string/status_bar_clock_style_title"
android:dialogTitle="@string/status_bar_clock_style_title"
android:entries="@array/status_bar_clock_style_entries"
android:entryValues="@array/status_bar_clock_style_values"
android:dependency="status_bar_clock" />
<ListPreference
android:key="status_bar_am_pm"
android:icon="@drawable/ic_24h"
android:title="@string/status_bar_am_pm_title"
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:dependency="status_bar_clock" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="status_bar_clock_seconds"
android:icon="@drawable/ic_seconds"
android:title="@string/clock_seconds_display"
android:dependency="status_bar_clock"
android:defaultValue="false" />
<ListPreference
android:key="clock_date_display"
android:icon="@drawable/ic_calendar"
android:title="@string/clock_date_display"
android:summary="@string/clock_date_display_summary"
android:entries="@array/clock_date_display_entries"
android:entryValues="@array/clock_date_display_values"
android:dependency="status_bar_clock" />
<ListPreference
android:key="statusbar_clock_date_position"
android:title="@string/clock_date_position"
android:icon="@drawable/ic_qs"
android:entries="@array/clock_date_position_entries"
android:entryValues="@array/clock_date_position_values"
android:dependency="clock_date_display" />
<ListPreference
android:key="clock_date_style"
android:icon="@drawable/ic_font"
android:title="@string/clock_date_style"
android:entries="@array/clock_date_style_entries"
android:entryValues="@array/clock_date_style_values"
android:dependency="clock_date_display" />
<ListPreference
android:key="clock_date_format"
android:icon="@drawable/ic_qs"
android:title="@string/clock_date_format"
android:entries="@array/clock_date_format_entries_values"
android:entryValues="@array/clock_date_format_entries_values"
android:dependency="clock_date_display" />
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="status_bar_clock_size"
android:title="@string/status_bar_clock_font_size_title"
android:max="23"
settings:min="4"
android:defaultValue="14"
settings:units="dp"/>
<net.margaritov.preference.colorpicker.ColorPickerPreference
android:key="status_bar_clock_color"
android:icon="@drawable/ic_color"
android:title="@string/status_bar_clock_color_title"
android:defaultValue="0xffffffff" />
<PreferenceCategory
android:title="@string/qs_clock_styling">
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="qs_header_clock_size"
android:dependency="status_bar_clock"
android:title="@string/qs_clock_font_size_title"
android:max="30"
settings:min="10"
android:defaultValue="14"
settings:units="dp"/>
<net.margaritov.preference.colorpicker.ColorPickerPreference
android:key="qs_header_clock_color"
android:dependency="status_bar_clock"
android:title="@string/qs_clock_color_title"
android:defaultValue="0xffffffff" />
</PreferenceCategory>
</PreferenceScreen>