blob: 0ebc0444043b515ce4df44dbeea67fc310039cd6 [file] [log] [blame]
Jay Aliomer53ad4fe2019-11-22 14:51:08 +00001<?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"
Jay Aliomer53ad4fe2019-11-22 14:51:08 +000021 settings:keywords="@string/keywords_dark_ui_mode">
22
Jay Aliomer41ee5662020-04-19 21:44:26 -040023 <com.android.settingslib.widget.LayoutPreference
24 android:key="dark_ui_location_off"
25 android:selectable="false"
26 android:layout="@layout/twilight_mode_location_off"
27 settings:allowDividerBelow="true"
28 settings:controller="com.android.settings.display.TwilightLocationPreferenceController"/>
29
Jay Aliomer53ad4fe2019-11-22 14:51:08 +000030 <DropDownPreference
31 android:key="dark_ui_auto_mode"
32 android:title="@string/dark_ui_auto_mode_title"
Jay Aliomer268d6b02019-12-07 16:37:30 -050033 android:summary="%s"
Jay Aliomer53ad4fe2019-11-22 14:51:08 +000034 android:entries="@array/dark_ui_scheduler_preference_titles"
35 android:entryValues="@array/dark_ui_scheduler_preference_titles"
Jay Aliomer41ee5662020-04-19 21:44:26 -040036 settings:allowDividerAbove="true"
Jay Aliomer53ad4fe2019-11-22 14:51:08 +000037 settings:controller="com.android.settings.display.darkmode.DarkModeScheduleSelectorController"
38 settings:keywords="@string/keywords_dark_ui_mode"/>
39
Jay Aliomerc31c35f2020-01-02 19:24:25 -050040 <Preference
41 android:key="dark_theme_start_time"
42 android:title="@string/night_display_start_time_title"
43 settings:searchable="false"/>
44
45 <Preference
46 android:key="dark_theme_end_time"
47 android:title="@string/night_display_end_time_title"
48 settings:searchable="false"/>
49
Jay Aliomer53ad4fe2019-11-22 14:51:08 +000050 <com.android.settingslib.widget.LayoutPreference
51 android:key="dark_ui_activated"
52 android:title="@string/dark_ui_title"
53 android:selectable="false"
54 android:layout="@layout/dark_ui_activation_button"
55 settings:allowDividerBelow="true"
Tsung-Mao Fangae9dc542020-05-05 21:08:37 +080056 settings:controller="com.android.settings.display.darkmode.DarkModeActivationPreferenceController"/>
Jay Aliomer53ad4fe2019-11-22 14:51:08 +000057
58 <com.android.settingslib.widget.FooterPreference
59 android:key="dark_ui_footer"
60 android:title="@string/dark_ui_text"
61 android:selectable="false"
62 settings:searchable="false"
63 settings:allowDividerAbove="true"/>
64
Edgar Wang0934bab2020-02-06 11:40:42 +080065</PreferenceScreen>