Merge "Change dark theme screen to toggle" into qt-dev
am: 3b8a0b82bf
Change-Id: I5d13eac9e99d47cc591eed30de6e739a826d4a54
This commit is contained in:
26
res/drawable/dark_theme.xml
Normal file
26
res/drawable/dark_theme.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2019 The Android Open Source 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
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="48dp"
|
||||
android:height="48dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0"
|
||||
android:tint="?android:attr/colorAccent">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12,22C17.52,22 22,17.52 22,12 22,6.48 17.52,2 12,2 6.48,2 2,6.48 2,12 2,17.52 6.48,22 12,22ZM12,3.915c3.889,0 8,4.005 8,8.085 0,4.08 -3.927,7.992 -7.928,7.992z"/>
|
||||
</vector>
|
@@ -9900,17 +9900,14 @@
|
||||
<string name="demo_mode">System UI demo mode</string>
|
||||
|
||||
<!-- [CHAR LIMIT=60] Name of setting that changes the UI to dark -->
|
||||
<string name="dark_ui_mode">Theme</string>
|
||||
|
||||
<!-- [CHAR LIMIT=60] Name of dev option that changes the color of the UI -->
|
||||
<string name="dark_ui_mode_title">Choose Theme</string>
|
||||
|
||||
<!-- [CHAR_LIMIT=NONE] Summary that is shown in the footer when light mode is selected -->
|
||||
<string name="dark_ui_settings_light_summary">This setting also applies to apps</string>
|
||||
<string name="dark_ui_mode">Dark Theme</string>
|
||||
|
||||
<!-- [CHAR_LIMIT=NONE] Summary that is shown in the footer when dark mode is selected -->
|
||||
<string name="dark_ui_settings_dark_summary">Supported apps will also switch to dark theme</string>
|
||||
|
||||
<!-- [CHAR_LIMIT=40] Positive button text in dark theme notification -->
|
||||
<string name="dark_ui_settings_dialog_acknowledge">Got it</string>
|
||||
|
||||
<!-- [CHAR LIMIT=60] Name of dev option to enable extra quick settings tiles -->
|
||||
<string name="quick_settings_developer_tiles">Quick settings developer tiles</string>
|
||||
|
||||
|
@@ -58,11 +58,10 @@
|
||||
android:title="@string/screen_zoom_title"
|
||||
settings:searchable="false"/>
|
||||
|
||||
<Preference
|
||||
<SwitchPreference
|
||||
android:key="dark_ui_mode_accessibility"
|
||||
android:fragment="com.android.settings.display.DarkUISettings"
|
||||
android:title="@string/dark_ui_mode"
|
||||
settings:searchable="false" />
|
||||
settings:searchable="false"/>
|
||||
|
||||
<Preference
|
||||
android:fragment="com.android.settings.accessibility.MagnificationPreferenceFragment"
|
||||
|
@@ -56,11 +56,10 @@
|
||||
</com.android.settingslib.RestrictedPreference>
|
||||
|
||||
|
||||
<Preference
|
||||
<SwitchPreference
|
||||
android:key="dark_ui_mode"
|
||||
android:fragment="com.android.settings.display.DarkUISettings"
|
||||
android:title="@string/dark_ui_mode"
|
||||
settings:searchable="false"
|
||||
settings:keywords="@string/keywords_dark_ui_mode"
|
||||
settings:controller="com.android.settings.display.DarkUIPreferenceController"/>
|
||||
|
||||
<!-- Cross-listed item, if you change this, also change it in power_usage_summary.xml -->
|
||||
|
Reference in New Issue
Block a user