Jay Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 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" |
Jay Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 21 | settings:keywords="@string/keywords_dark_ui_mode"> |
| 22 | |
Jay Aliomer | 41ee566 | 2020-04-19 21:44:26 -0400 | [diff] [blame] | 23 | <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 Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 30 | <DropDownPreference |
| 31 | android:key="dark_ui_auto_mode" |
| 32 | android:title="@string/dark_ui_auto_mode_title" |
Jay Aliomer | 268d6b0 | 2019-12-07 16:37:30 -0500 | [diff] [blame] | 33 | android:summary="%s" |
Jay Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 34 | android:entries="@array/dark_ui_scheduler_preference_titles" |
| 35 | android:entryValues="@array/dark_ui_scheduler_preference_titles" |
Jay Aliomer | 41ee566 | 2020-04-19 21:44:26 -0400 | [diff] [blame] | 36 | settings:allowDividerAbove="true" |
Jay Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 37 | settings:controller="com.android.settings.display.darkmode.DarkModeScheduleSelectorController" |
| 38 | settings:keywords="@string/keywords_dark_ui_mode"/> |
| 39 | |
Jay Aliomer | c31c35f | 2020-01-02 19:24:25 -0500 | [diff] [blame] | 40 | <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 Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 50 | <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 Fang | ae9dc54 | 2020-05-05 21:08:37 +0800 | [diff] [blame] | 56 | settings:controller="com.android.settings.display.darkmode.DarkModeActivationPreferenceController"/> |
Jay Aliomer | 53ad4fe | 2019-11-22 14:51:08 +0000 | [diff] [blame] | 57 | |
| 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 Wang | 0934bab | 2020-02-06 11:40:42 +0800 | [diff] [blame] | 65 | </PreferenceScreen> |