OSDN Git Service

Add settings for scheduling dark theme
[android-x86/packages-apps-Settings.git] / res / xml / dark_mode_settings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2019 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <PreferenceScreen
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     xmlns:settings="http://schemas.android.com/apk/res-auto"
20     android:title="@string/dark_ui_mode"
21     android:key="dark_ui_mode_screen"
22     settings:keywords="@string/keywords_dark_ui_mode">
23
24     <DropDownPreference
25         android:key="dark_ui_auto_mode"
26         android:title="@string/dark_ui_auto_mode_title"
27         android:summary="%s"
28         android:entries="@array/dark_ui_scheduler_preference_titles"
29         android:entryValues="@array/dark_ui_scheduler_preference_titles"
30         settings:controller="com.android.settings.display.darkmode.DarkModeScheduleSelectorController"
31         settings:keywords="@string/keywords_dark_ui_mode"/>
32
33     <com.android.settingslib.widget.LayoutPreference
34         android:key="dark_ui_activated"
35         android:title="@string/dark_ui_title"
36         android:selectable="false"
37         android:layout="@layout/dark_ui_activation_button"
38         settings:allowDividerBelow="true"
39         settings:controller="com.android.settings.display.darkmode.DarkModeActivationPreferenceController"
40         settings:keywords="@string/keywords_dark_ui_mode"/>
41
42     <com.android.settingslib.widget.FooterPreference
43             android:key="dark_ui_footer"
44             android:title="@string/dark_ui_text"
45             android:selectable="false"
46             settings:searchable="false"
47             settings:allowDividerAbove="true"/>
48
49 </PreferenceScreen>