Merge "[Settings] Migrate color roles to respect color contrast" into main
This commit is contained in:
18
res/color-night-v35/settings_two_pane_background_color.xml
Normal file
18
res/color-night-v35/settings_two_pane_background_color.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2024 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.
|
||||||
|
-->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="@android:color/system_surface_dim_dark" />
|
||||||
|
</selector>
|
18
res/color-v35/settings_two_pane_background_color.xml
Normal file
18
res/color-v35/settings_two_pane_background_color.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2024 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.
|
||||||
|
-->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="@android:color/system_surface_dim_light" />
|
||||||
|
</selector>
|
@@ -20,7 +20,7 @@
|
|||||||
<style name="Theme.Settings.Home" parent="Theme.Settings.HomeBase">
|
<style name="Theme.Settings.Home" parent="Theme.Settings.HomeBase">
|
||||||
<item name="colorPrimary">@*android:color/primary_device_default_settings</item>
|
<item name="colorPrimary">@*android:color/primary_device_default_settings</item>
|
||||||
<item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings</item>
|
<item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings</item>
|
||||||
<item name="android:colorBackground">?android:attr/colorPrimaryDark</item>
|
<item name="android:colorBackground">@android:color/system_surface_container_dark</item>
|
||||||
<!-- Homepage should follow device default design, the values is same as device default theme.-->
|
<!-- Homepage should follow device default design, the values is same as device default theme.-->
|
||||||
<item name="android:navigationBarColor">@android:color/black</item>
|
<item name="android:navigationBarColor">@android:color/black</item>
|
||||||
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
||||||
@@ -29,9 +29,9 @@
|
|||||||
<style name="Theme.SubSettings" parent="Theme.SubSettings.Base"/>
|
<style name="Theme.SubSettings" parent="Theme.SubSettings.Base"/>
|
||||||
|
|
||||||
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
||||||
<item name="colorAccent">@*android:color/accent_device_default_dark</item>
|
<item name="colorAccent">@android:color/system_primary_dark</item>
|
||||||
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
||||||
<item name="android:colorBackground">@*android:color/surface_dark</item>
|
<item name="android:colorBackground">@android:color/system_surface_container_high_dark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Panel.Material" parent="Theme.Panel" >
|
<style name="Theme.Panel.Material" parent="Theme.Panel" >
|
||||||
|
@@ -115,9 +115,9 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
||||||
<item name="colorAccent">@*android:color/accent_device_default_light</item>
|
<item name="colorAccent">@android:color/system_primary_light</item>
|
||||||
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
||||||
<item name="android:colorBackground">@*android:color/surface_light</item>
|
<item name="android:colorBackground">@android:color/system_surface_container_high_light</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.AlertDialog" parent="Theme.AlertDialog.Base">
|
<style name="Theme.AlertDialog" parent="Theme.AlertDialog.Base">
|
||||||
@@ -204,6 +204,7 @@
|
|||||||
<!-- Homepage should follow device default design, the values is same as device default theme.-->
|
<!-- Homepage should follow device default design, the values is same as device default theme.-->
|
||||||
<item name="android:navigationBarColor">@android:color/white</item>
|
<item name="android:navigationBarColor">@android:color/white</item>
|
||||||
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
||||||
|
<item name="android:colorBackground">@android:color/system_surface_container_light</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Settings.Home.NoAnimation">
|
<style name="Theme.Settings.Home.NoAnimation">
|
||||||
|
Reference in New Issue
Block a user