• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    settings:keywords="@string/keywords_dark_ui_mode">
22
23    <com.android.settingslib.widget.TopIntroPreference
24        android:key="dark_ui_top_intro"
25        android:title="@string/dark_ui_text"
26        settings:searchable="false"/>
27
28    <com.android.settingslib.widget.MainSwitchPreference
29        android:key="dark_ui_activated"
30        android:title="@string/dark_theme_main_switch_title"
31        settings:controller="com.android.settings.display.darkmode.DarkModeActivationPreferenceController"/>
32
33    <com.android.settingslib.widget.BannerMessagePreference
34        android:key="dark_ui_location_off"
35        android:title="@string/twilight_mode_location_off_dialog_message"
36        settings:controller="com.android.settings.display.TwilightLocationPreferenceController"/>
37
38    <DropDownPreference
39        android:key="dark_ui_auto_mode"
40        android:title="@string/dark_ui_auto_mode_title"
41        android:summary="%s"
42        android:entries="@array/dark_ui_scheduler_preference_titles"
43        android:entryValues="@array/dark_ui_scheduler_preference_titles"
44        settings:allowDividerAbove="true"
45        settings:controller="com.android.settings.display.darkmode.DarkModeScheduleSelectorController"
46        settings:keywords="@string/keywords_dark_ui_mode"/>
47
48    <Preference
49        android:key="dark_theme_start_time"
50        android:title="@string/night_display_start_time_title"
51        settings:searchable="false"/>
52
53    <Preference
54        android:key="dark_theme_end_time"
55        android:title="@string/night_display_end_time_title"
56        settings:searchable="false"/>
57
58</PreferenceScreen>
59