forked from PeterGSI/patches
74 lines
3.1 KiB
Diff
74 lines
3.1 KiB
Diff
From dbb30694c2cce4a5fb70ea6a8c5594bcca7cba4d Mon Sep 17 00:00:00 2001
|
|
From: Danny Lin <danny@kdrag0n.dev>
|
|
Date: Sun, 10 Oct 2021 03:38:23 -0700
|
|
Subject: [PATCH 5/5] Fix Personal/Work profile tab colors in All Apps
|
|
|
|
The default AOSP colors are broken and result in poor contrast, among
|
|
other issues.
|
|
|
|
Change-Id: Id7824bc08cac0aad055f41c0b617e15300af05d4
|
|
---
|
|
res/color-night-v31/all_apps_tab_text.xml | 6 +++---
|
|
.../all_apps_tabs_background.xml | 18 ++++++++++++++++++
|
|
res/color-v31/all_apps_tab_text.xml | 6 +++---
|
|
3 files changed, 24 insertions(+), 6 deletions(-)
|
|
create mode 100644 res/color-night-v31/all_apps_tabs_background.xml
|
|
|
|
diff --git a/res/color-night-v31/all_apps_tab_text.xml b/res/color-night-v31/all_apps_tab_text.xml
|
|
index 83237b49e5..eaac621cfc 100644
|
|
--- a/res/color-night-v31/all_apps_tab_text.xml
|
|
+++ b/res/color-night-v31/all_apps_tab_text.xml
|
|
@@ -14,6 +14,6 @@
|
|
limitations under the License.
|
|
-->
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
- <item android:color="@android:color/system_neutral1_50" android:state_selected="true"/>
|
|
- <item android:color="@android:color/system_neutral2_700"/>
|
|
-</selector>
|
|
\ No newline at end of file
|
|
+ <item android:color="?android:textColorPrimaryInverse" android:state_selected="true"/>
|
|
+ <item android:color="?android:textColorSecondary"/>
|
|
+</selector>
|
|
diff --git a/res/color-night-v31/all_apps_tabs_background.xml b/res/color-night-v31/all_apps_tabs_background.xml
|
|
new file mode 100644
|
|
index 0000000000..fc8a4d7d79
|
|
--- /dev/null
|
|
+++ b/res/color-night-v31/all_apps_tabs_background.xml
|
|
@@ -0,0 +1,18 @@
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
+<!-- Copyright (C) 2021 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_neutral1_800" />
|
|
+</selector>
|
|
diff --git a/res/color-v31/all_apps_tab_text.xml b/res/color-v31/all_apps_tab_text.xml
|
|
index c3520a7ab5..d133a31a2d 100644
|
|
--- a/res/color-v31/all_apps_tab_text.xml
|
|
+++ b/res/color-v31/all_apps_tab_text.xml
|
|
@@ -14,6 +14,6 @@
|
|
limitations under the License.
|
|
-->
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
- <item android:color="@android:color/system_neutral1_900" android:state_selected="true"/>
|
|
- <item android:color="@android:color/system_neutral2_700"/>
|
|
-</selector>
|
|
\ No newline at end of file
|
|
+ <item android:color="?android:textColorPrimary" android:state_selected="true"/>
|
|
+ <item android:color="?android:textColorSecondary"/>
|
|
+</selector>
|
|
--
|
|
2.37.2
|
|
|