Changes for March 2022, syncing up to v410
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From 9644e048f2a52b51195003bb90a45c3a0efb67c8 Mon Sep 17 00:00:00 2001
|
||||
From 9bfffff2b717e8606d4b0332b485e5c7bb1a02e1 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 13 Jan 2022 14:22:24 +0000
|
||||
Subject: [PATCH 01/19] Add SPenPointerOverlay
|
||||
Subject: [PATCH 01/22] Add SPenPointerOverlay
|
||||
|
||||
Toggle this overlay with property "persist.ui.spen.pointer"
|
||||
|
||||
|
||||
@@ -0,0 +1,334 @@
|
||||
From e75e1b19b2da6bea129d320436f3796de4635936 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 14 Mar 2022 08:20:43 +0000
|
||||
Subject: [PATCH 02/22] UI: Monet: Default to Lineage Teal
|
||||
|
||||
Embrace Monet, but also maintain some LOS identity
|
||||
Applies the signature teal of LineageOS (#167C80) as fallback (e.g. with live wallpapers)
|
||||
|
||||
Change-Id: Ida88fa1d891223ad11e058d24b3c96bebbc9cd62
|
||||
---
|
||||
core/res/res/values/colors.xml | 120 +++++++++---------
|
||||
.../com/android/systemui/monet/ColorScheme.kt | 14 +-
|
||||
2 files changed, 67 insertions(+), 67 deletions(-)
|
||||
|
||||
diff --git a/core/res/res/values/colors.xml b/core/res/res/values/colors.xml
|
||||
index 59d6005ba193..36cf03f5268e 100644
|
||||
--- a/core/res/res/values/colors.xml
|
||||
+++ b/core/res/res/values/colors.xml
|
||||
@@ -245,200 +245,200 @@
|
||||
|
||||
<!-- Lightest shade of the accent color used by the system. White.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_0">#ffffff</color>
|
||||
+ <color name="system_accent1_0">#FFFFFF</color>
|
||||
<!-- Shade of the accent system color at 99% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_10">#F9FCFF</color>
|
||||
+ <color name="system_accent1_10">#EFFFFF</color>
|
||||
<!-- Shade of the accent system color at 95% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_50">#E0F3FF</color>
|
||||
+ <color name="system_accent1_50">#B4FDFF</color>
|
||||
<!-- Shade of the accent system color at 90% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_100">#C1E8FF</color>
|
||||
+ <color name="system_accent1_100">#6EF6FC</color>
|
||||
<!-- Shade of the accent system color at 80% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_200">#76D1FF</color>
|
||||
+ <color name="system_accent1_200">#4CD9E0</color>
|
||||
<!-- Shade of the accent system color at 70% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_300">#4BB6E8</color>
|
||||
+ <color name="system_accent1_300">#1EBDC4</color>
|
||||
<!-- Shade of the accent system color at 60% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_400">#219BCC</color>
|
||||
+ <color name="system_accent1_400">#00A1A7</color>
|
||||
<!-- Shade of the accent system color at 49.6% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_500">#007FAC</color>
|
||||
+ <color name="system_accent1_500">#008388</color>
|
||||
<!-- Shade of the accent system color at 40% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_600">#00668B</color>
|
||||
+ <color name="system_accent1_600">#00696E</color>
|
||||
<!-- Shade of the accent system color at 30% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_700">#004C69</color>
|
||||
+ <color name="system_accent1_700">#004F53</color>
|
||||
<!-- Shade of the accent system color at 20% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_800">#003549</color>
|
||||
+ <color name="system_accent1_800">#00373A</color>
|
||||
<!-- Shade of the accent system color at 10% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent1_900">#001E2C</color>
|
||||
+ <color name="system_accent1_900">#002022</color>
|
||||
<!-- Darkest shade of the accent color used by the system. Black.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
<color name="system_accent1_1000">#000000</color>
|
||||
|
||||
<!-- Lightest shade of the secondary accent color used by the system. White.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_0">#ffffff</color>
|
||||
+ <color name="system_accent2_0">#FFFFFF</color>
|
||||
<!-- Shade of the secondary accent system color at 99% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_10">#F9FCFF</color>
|
||||
+ <color name="system_accent2_10">#EFFFFF</color>
|
||||
<!-- Shade of the secondary accent system color at 95% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_50">#E0F3FF</color>
|
||||
+ <color name="system_accent2_50">#DAF6F7</color>
|
||||
<!-- Shade of the secondary accent system color at 90% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_100">#D1E5F4</color>
|
||||
+ <color name="system_accent2_100">#CCE8E8</color>
|
||||
<!-- Shade of the secondary accent system color at 80% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_200">#B5CAD7</color>
|
||||
+ <color name="system_accent2_200">#B0CCCC</color>
|
||||
<!-- Shade of the secondary accent system color at 70% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_300">#9AAEBB</color>
|
||||
+ <color name="system_accent2_300">#96B0B1</color>
|
||||
<!-- Shade of the secondary accent system color at 60% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_400">#8094A0</color>
|
||||
+ <color name="system_accent2_400">#7B9697</color>
|
||||
<!-- Shade of the secondary accent system color at 49.6% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_500">#657985</color>
|
||||
+ <color name="system_accent2_500">#617B7C</color>
|
||||
<!-- Shade of the secondary accent system color at 40% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_600">#4E616C</color>
|
||||
+ <color name="system_accent2_600">#496364</color>
|
||||
<!-- Shade of the secondary accent system color at 30% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_700">#374955</color>
|
||||
+ <color name="system_accent2_700">#324B4D</color>
|
||||
<!-- Shade of the secondary accent system color at 20% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_800">#20333D</color>
|
||||
+ <color name="system_accent2_800">#1B3436</color>
|
||||
<!-- Shade of the secondary accent system color at 10% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent2_900">#091E28</color>
|
||||
+ <color name="system_accent2_900">#051F21</color>
|
||||
<!-- Darkest shade of the secondary accent color used by the system. Black.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
<color name="system_accent2_1000">#000000</color>
|
||||
|
||||
<!-- Lightest shade of the tertiary accent color used by the system. White.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_0">#ffffff</color>
|
||||
+ <color name="system_accent3_0">#FFFFFF</color>
|
||||
<!-- Shade of the tertiary accent system color at 99% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_10">#FFFBFF</color>
|
||||
+ <color name="system_accent3_10">#FDFCFF</color>
|
||||
<!-- Shade of the tertiary accent system color at 95% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_50">#F5EEFF</color>
|
||||
+ <color name="system_accent3_50">#EBF1FF</color>
|
||||
<!-- Shade of the tertiary accent system color at 90% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_100">#E6DEFF</color>
|
||||
+ <color name="system_accent3_100">#D4E3FF</color>
|
||||
<!-- Shade of the tertiary accent system color at 80% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_200">#CAC1EA</color>
|
||||
+ <color name="system_accent3_200">#ACC8F7</color>
|
||||
<!-- Shade of the tertiary accent system color at 70% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_300">#AEA6CE</color>
|
||||
+ <color name="system_accent3_300">#91ACDB</color>
|
||||
<!-- Shade of the tertiary accent system color at 60% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_400">#938CB1</color>
|
||||
+ <color name="system_accent3_400">#7692BE</color>
|
||||
<!-- Shade of the tertiary accent system color at 49% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_500">#787296</color>
|
||||
+ <color name="system_accent3_500">#5C77A2</color>
|
||||
<!-- Shade of the tertiary accent system color at 40% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_600">#605A7C</color>
|
||||
+ <color name="system_accent3_600">#445F8A</color>
|
||||
<!-- Shade of the tertiary accent system color at 30% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_700">#484264</color>
|
||||
+ <color name="system_accent3_700">#2B4770</color>
|
||||
<!-- Shade of the tertiary accent system color at 20% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_800">#322C4C</color>
|
||||
+ <color name="system_accent3_800">#113158</color>
|
||||
<!-- Shade of the tertiary accent system color at 10% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_accent3_900">#1D1736</color>
|
||||
+ <color name="system_accent3_900">#001B3D</color>
|
||||
<!-- Darkest shade of the tertiary accent color used by the system. Black.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
<color name="system_accent3_1000">#000000</color>
|
||||
|
||||
<!-- Lightest shade of the neutral color used by the system. White.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_0">#ffffff</color>
|
||||
+ <color name="system_neutral1_0">#FFFFFF</color>
|
||||
<!-- Shade of the neutral system color at 99% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_10">#FCFCFF</color>
|
||||
+ <color name="system_neutral1_10">#FAFDFC</color>
|
||||
<!-- Shade of the neutral system color at 95% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_50">#F0F0F3</color>
|
||||
+ <color name="system_neutral1_50">#EFF1F1</color>
|
||||
<!-- Shade of the neutral system color at 90% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_100">#E1E3E5</color>
|
||||
+ <color name="system_neutral1_100">#E0E3E2</color>
|
||||
<!-- Shade of the neutral system color at 80% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_200">#C5C7C9</color>
|
||||
+ <color name="system_neutral1_200">#C4C7C6</color>
|
||||
<!-- Shade of the neutral system color at 70% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_300">#AAABAE</color>
|
||||
+ <color name="system_neutral1_300">#A9ACAB</color>
|
||||
<!-- Shade of the neutral system color at 60% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_400">#8F9193</color>
|
||||
+ <color name="system_neutral1_400">#8E9191</color>
|
||||
<!-- Shade of the neutral system color at 49% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_500">#747679</color>
|
||||
+ <color name="system_neutral1_500">#737776</color>
|
||||
<!-- Shade of the neutral system color at 40% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_600">#5C5F61</color>
|
||||
+ <color name="system_neutral1_600">#5B5F5F</color>
|
||||
<!-- Shade of the neutral system color at 30% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_700">#454749</color>
|
||||
+ <color name="system_neutral1_700">#444747</color>
|
||||
<!-- Shade of the neutral system color at 20% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_800">#2E3133</color>
|
||||
+ <color name="system_neutral1_800">#2E3131</color>
|
||||
<!-- Shade of the neutral system color at 10% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral1_900">#191C1E</color>
|
||||
+ <color name="system_neutral1_900">#191C1C</color>
|
||||
<!-- Darkest shade of the neutral color used by the system. Black.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
<color name="system_neutral1_1000">#000000</color>
|
||||
|
||||
<!-- Lightest shade of the secondary neutral color used by the system. White.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_0">#ffffff</color>
|
||||
+ <color name="system_neutral2_0">#FFFFFF</color>
|
||||
<!-- Shade of the secondary neutral system color at 99% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_10">#F9FCFF</color>
|
||||
+ <color name="system_neutral2_10">#F4FEFE</color>
|
||||
<!-- Shade of the secondary neutral system color at 95% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_50">#EBF1F8</color>
|
||||
+ <color name="system_neutral2_50">#E8F3F2</color>
|
||||
<!-- Shade of the secondary neutral system color at 90% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_100">#DCE3E9</color>
|
||||
+ <color name="system_neutral2_100">#DAE5E4</color>
|
||||
<!-- Shade of the secondary neutral system color at 80% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_200">#C0C7CD</color>
|
||||
+ <color name="system_neutral2_200">#BEC8C9</color>
|
||||
<!-- Shade of the secondary neutral system color at 70% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_300">#A5ACB2</color>
|
||||
+ <color name="system_neutral2_300">#A3ADAE</color>
|
||||
<!-- Shade of the secondary neutral system color at 60% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_400">#8A9297</color>
|
||||
+ <color name="system_neutral2_400">#889393</color>
|
||||
<!-- Shade of the secondary neutral system color at 49% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_500">#70777C</color>
|
||||
+ <color name="system_neutral2_500">#6E7878</color>
|
||||
<!-- Shade of the secondary neutral system color at 40% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_600">#585F65</color>
|
||||
+ <color name="system_neutral2_600">#566061</color>
|
||||
<!-- Shade of the secondary neutral system color at 30% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_700">#40484D</color>
|
||||
+ <color name="system_neutral2_700">#3F4949</color>
|
||||
<!-- Shade of the secondary neutral system color at 20% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_800">#2A3136</color>
|
||||
+ <color name="system_neutral2_800">#293232</color>
|
||||
<!-- Shade of the secondary neutral system color at 10% perceptual luminance (L* in L*a*b* color space).
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
- <color name="system_neutral2_900">#161C20</color>
|
||||
+ <color name="system_neutral2_900">#141D1E</color>
|
||||
<!-- Darkest shade of the secondary neutral color used by the system. Black.
|
||||
This value can be overlaid at runtime by OverlayManager RROs. -->
|
||||
<color name="system_neutral2_1000">#000000</color>
|
||||
diff --git a/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt b/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt
|
||||
index 0b3eccfd3a91..eabc1c510ecb 100644
|
||||
--- a/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt
|
||||
+++ b/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt
|
||||
@@ -35,7 +35,7 @@ const val ACCENT3_HUE_SHIFT = 60.0f
|
||||
const val NEUTRAL1_CHROMA = 4.0f
|
||||
const val NEUTRAL2_CHROMA = 8.0f
|
||||
|
||||
-const val GOOGLE_BLUE = 0xFF1b6ef3.toInt()
|
||||
+const val LINEAGE_TEAL = 0xFF167C80.toInt()
|
||||
|
||||
const val MIN_CHROMA = 5
|
||||
|
||||
@@ -76,9 +76,9 @@ public class ColorScheme(@ColorInt seed: Int, val darkTheme: Boolean) {
|
||||
init {
|
||||
val proposedSeedCam = Cam.fromInt(seed)
|
||||
val seedArgb = if (seed == Color.TRANSPARENT) {
|
||||
- GOOGLE_BLUE
|
||||
+ LINEAGE_TEAL
|
||||
} else if (proposedSeedCam.chroma < 5) {
|
||||
- GOOGLE_BLUE
|
||||
+ LINEAGE_TEAL
|
||||
} else {
|
||||
seed
|
||||
}
|
||||
@@ -140,7 +140,7 @@ public class ColorScheme(@ColorInt seed: Int, val darkTheme: Boolean) {
|
||||
}.toList()
|
||||
|
||||
if (distinctColors.isEmpty()) {
|
||||
- return listOf(GOOGLE_BLUE)
|
||||
+ return listOf(LINEAGE_TEAL)
|
||||
}
|
||||
return distinctColors
|
||||
}
|
||||
@@ -204,8 +204,8 @@ public class ColorScheme(@ColorInt seed: Int, val darkTheme: Boolean) {
|
||||
}
|
||||
|
||||
if (seeds.isEmpty()) {
|
||||
- // Use gBlue 500 if there are 0 colors
|
||||
- seeds.add(GOOGLE_BLUE)
|
||||
+ // Use Lineage Teal 500 if there are 0 colors
|
||||
+ seeds.add(LINEAGE_TEAL)
|
||||
}
|
||||
|
||||
return seeds
|
||||
@@ -259,4 +259,4 @@ public class ColorScheme(@ColorInt seed: Int, val darkTheme: Boolean) {
|
||||
return huePopulation
|
||||
}
|
||||
}
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 160ca5e73a2d075c5514db911180d4523fedf860 Mon Sep 17 00:00:00 2001
|
||||
From 32011e0db7f8ee8de64a9b9a5912e6c39a2ab7cb Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 5 Apr 2018 10:01:19 +0800
|
||||
Subject: [PATCH 02/19] Disable vendor mismatch warning
|
||||
Subject: [PATCH 03/22] Disable vendor mismatch warning
|
||||
|
||||
Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||
---
|
||||
@@ -9,10 +9,10 @@ Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
|
||||
1 file changed, 2 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
index 5d0d182230e1..789968e19ab6 100644
|
||||
index 112a56957fc0..8b6ec8bbf3ff 100644
|
||||
--- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
+++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
|
||||
@@ -5508,20 +5508,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
@@ -5665,20 +5665,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
}
|
||||
|
||||
if (!Build.isBuildConsistent()) {
|
||||
@@ -1,7 +1,7 @@
|
||||
From 79e4311950c147ce85983a7088f4d921050f3f74 Mon Sep 17 00:00:00 2001
|
||||
From e9b33bcd2d50330e1b34e3f865cc46b9fc7aaaf3 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 16 Oct 2021 02:23:48 +0000
|
||||
Subject: [PATCH 03/19] UI: Adjust default navbar layouts
|
||||
Subject: [PATCH 04/22] UI: Adjust default navbar layouts
|
||||
|
||||
- Slightly tighten nodpi layout
|
||||
- Remove sw372dp layout - looks terrible, probably meant for legacy phablets, but most modern phones qualify
|
||||
@@ -45,10 +45,10 @@ index 07b797a32428..000000000000
|
||||
- <string name="config_navBarLayout" translatable="false">left[.25W],back[.5WC];home;recent[.5WC],right[.25W]</string>
|
||||
-</resources>
|
||||
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
||||
index ebf7b8407727..557699b35aa8 100644
|
||||
index 1bee8eee1534..d0a3a807a79a 100644
|
||||
--- a/packages/SystemUI/res/values/config.xml
|
||||
+++ b/packages/SystemUI/res/values/config.xml
|
||||
@@ -350,7 +350,7 @@
|
||||
@@ -332,7 +332,7 @@
|
||||
</string-array>
|
||||
|
||||
<!-- Nav bar button default ordering/layout -->
|
||||
@@ -1,7 +1,7 @@
|
||||
From 47b42ba04a71792b6a0d9bcfa6fe515593d4bcc8 Mon Sep 17 00:00:00 2001
|
||||
From 4a097fc8eba629cc0e6784c7b1d8da7a1a9c0a6e Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 9 Mar 2018 15:41:26 +0800
|
||||
Subject: [PATCH 04/19] UI: Disable left (seascape) navigation bar optionally
|
||||
Subject: [PATCH 05/22] UI: Disable left (seascape) navigation bar optionally
|
||||
|
||||
Toggle this behaviour with property "persist.ui.seascape.disable"
|
||||
|
||||
@@ -45,12 +45,12 @@ index f1e1366404a2..f43bef8532b8 100644
|
||||
for (int i = 0; i < group.getChildCount(); i++) {
|
||||
final View child = group.getChildAt(i);
|
||||
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
index 21bca6ed6a53..b699c4e4f38d 100644
|
||||
index 65eaa63118b2..89ac6585c673 100644
|
||||
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
@@ -2388,9 +2388,10 @@ public class DisplayPolicy {
|
||||
@NavigationBarPosition
|
||||
int navigationBarPosition(int displayWidth, int displayHeight, int displayRotation) {
|
||||
@@ -2644,9 +2644,10 @@ public class DisplayPolicy {
|
||||
}
|
||||
}
|
||||
if (navigationBarCanMove() && displayWidth > displayHeight) {
|
||||
- if (displayRotation == Surface.ROTATION_270) {
|
||||
+ boolean isSeascapeDisabled = SystemProperties.getBoolean("persist.ui.seascape.disable", false);
|
||||
@@ -1,7 +1,7 @@
|
||||
From 66956ebbdb5645ff2cfb2a010d4371faa7c41554 Mon Sep 17 00:00:00 2001
|
||||
From a83a00cadfd1ab7746fda648ec0f54c2bcec794d Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 10 Jan 2021 11:44:29 +0000
|
||||
Subject: [PATCH 05/19] UI: Disable wallpaper zoom
|
||||
Subject: [PATCH 06/22] UI: Disable wallpaper zoom
|
||||
|
||||
It does little more than inducing motion sickness
|
||||
|
||||
@@ -11,10 +11,10 @@ Change-Id: I78cc5484930b27f172cd8d8a5bd9042dce3478d0
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index 3ce1886fef6d..d8f280ddbf93 100644
|
||||
index e2216d23e15e..9d6c712c8285 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -4770,7 +4770,7 @@
|
||||
@@ -4842,7 +4842,7 @@
|
||||
<string name="config_customMediaSessionPolicyProvider"></string>
|
||||
|
||||
<!-- The max scale for the wallpaper when it's zoomed in -->
|
||||
@@ -1,26 +0,0 @@
|
||||
From 04b13419bb9446b5b25fe329be88804e297050b2 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 3 Jun 2020 01:31:34 +0000
|
||||
Subject: [PATCH 06/19] UI: Increase default status bar height
|
||||
|
||||
Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
||||
---
|
||||
core/res/res/values/dimens.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
|
||||
index a666a5b4b796..b62a785cd69f 100644
|
||||
--- a/core/res/res/values/dimens.xml
|
||||
+++ b/core/res/res/values/dimens.xml
|
||||
@@ -43,7 +43,7 @@
|
||||
<dimen name="status_bar_height">@dimen/status_bar_height_portrait</dimen>
|
||||
<!-- Height of the status bar in portrait. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
- <dimen name="status_bar_height_portrait">24dp</dimen>
|
||||
+ <dimen name="status_bar_height_portrait">28dp</dimen>
|
||||
<!-- Height of the status bar in landscape. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
<dimen name="status_bar_height_landscape">@dimen/status_bar_height_portrait</dimen>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 0157abc9f7b706b3b884178f1668da6f6874e90a Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 3 Jun 2020 01:31:34 +0000
|
||||
Subject: [PATCH 07/22] UI: Increase default status bar height
|
||||
|
||||
Change-Id: Ibbcf63159e19bb2bb2b1094ea07ab85917630b07
|
||||
---
|
||||
core/res/res/values/dimens.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
|
||||
index f331f1ab720f..a31e166296ee 100644
|
||||
--- a/core/res/res/values/dimens.xml
|
||||
+++ b/core/res/res/values/dimens.xml
|
||||
@@ -42,7 +42,7 @@
|
||||
<!-- Height of the status bar.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
- <dimen name="status_bar_height">24dp</dimen>
|
||||
+ <dimen name="status_bar_height">28dp</dimen>
|
||||
<!-- Height of the status bar in portrait.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From c84e0185c5cd5e9312eb1d393e36a2b82cf02e67 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 19 Mar 2022 09:22:24 +0000
|
||||
Subject: [PATCH 08/22] UI: Restore split-screen divider to pre-Sv2 looks
|
||||
|
||||
- Kill rounded corners - where two rectangles collide should be perfectly straight
|
||||
- Make it black again - taskbar should mind its own business
|
||||
|
||||
Change-Id: I240b627793b615c82bd07ebd77638cde180ef80f
|
||||
---
|
||||
.../Shell/res/color/split_divider_background.xml | 4 ++--
|
||||
libs/WindowManager/Shell/res/values/dimen.xml | 2 +-
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libs/WindowManager/Shell/res/color/split_divider_background.xml b/libs/WindowManager/Shell/res/color/split_divider_background.xml
|
||||
index 329e5b9b31a0..cd54ac26a7fd 100644
|
||||
--- a/libs/WindowManager/Shell/res/color/split_divider_background.xml
|
||||
+++ b/libs/WindowManager/Shell/res/color/split_divider_background.xml
|
||||
@@ -15,5 +15,5 @@
|
||||
~ limitations under the License.
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
- <item android:color="@android:color/system_neutral1_500" android:lStar="35" />
|
||||
-</selector>
|
||||
\ No newline at end of file
|
||||
+ <item android:color="@android:color/black" />
|
||||
+</selector>
|
||||
diff --git a/libs/WindowManager/Shell/res/values/dimen.xml b/libs/WindowManager/Shell/res/values/dimen.xml
|
||||
index af78293eb3ea..489fb0c83681 100644
|
||||
--- a/libs/WindowManager/Shell/res/values/dimen.xml
|
||||
+++ b/libs/WindowManager/Shell/res/values/dimen.xml
|
||||
@@ -88,7 +88,7 @@
|
||||
<dimen name="split_divider_handle_height">3dp</dimen>
|
||||
|
||||
<dimen name="split_divider_bar_width">10dp</dimen>
|
||||
- <dimen name="split_divider_corner_size">42dp</dimen>
|
||||
+ <dimen name="split_divider_corner_size">0dp</dimen>
|
||||
|
||||
<!-- One-Handed Mode -->
|
||||
<!-- Threshold for dragging distance to enable one-handed mode -->
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 65e25646ab0c3cbfdc7199a791cd5e8bcccbaffe Mon Sep 17 00:00:00 2001
|
||||
From dee59312a6b9ba10154af6ec96f9004a670177b9 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 6 Oct 2020 01:41:16 +0000
|
||||
Subject: [PATCH 07/19] UI: Revive navbar layout tuning via sysui_nav_bar
|
||||
Subject: [PATCH 09/22] UI: Revive navbar layout tuning via sysui_nav_bar
|
||||
tunable
|
||||
|
||||
Google keeps fixing what ain't broken.
|
||||
@@ -1,40 +0,0 @@
|
||||
From 5bfabfbe5d9b44e85f18151fa1f29ed59b505dd5 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 14 Oct 2021 15:45:24 +0000
|
||||
Subject: [PATCH 09/19] UI: Unblock alarm status bar icon
|
||||
|
||||
That's very Zen of you, Google...
|
||||
|
||||
Change-Id: I2c9f91f47bb1e324a20c13d588dcdbbca91dc12e
|
||||
---
|
||||
.../systemui/statusbar/phone/CollapsedStatusBarFragment.java | 1 -
|
||||
.../android/systemui/statusbar/phone/KeyguardStatusBarView.java | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java
|
||||
index 2e40af4fab2a..f8c79ceabf2e 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java
|
||||
@@ -162,7 +162,6 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
|
||||
}
|
||||
mDarkIconManager = new DarkIconManager(view.findViewById(R.id.statusIcons), mFeatureFlags);
|
||||
mDarkIconManager.setShouldLog(true);
|
||||
- mBlockedIcons.add(getString(com.android.internal.R.string.status_bar_alarm_clock));
|
||||
mBlockedIcons.add(getString(com.android.internal.R.string.status_bar_call_strength));
|
||||
mDarkIconManager.setBlockList(mBlockedIcons);
|
||||
mStatusBarIconController.addIconGroup(mDarkIconManager);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
index a32e7c4765ef..efc02548763a 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
@@ -203,7 +203,6 @@ public class KeyguardStatusBarView extends RelativeLayout implements
|
||||
// Set hidden status bar items
|
||||
private void loadBlockList() {
|
||||
Resources r = getResources();
|
||||
- mBlockedIcons.add(r.getString(com.android.internal.R.string.status_bar_alarm_clock));
|
||||
mBlockedIcons.add(r.getString(com.android.internal.R.string.status_bar_call_strength));
|
||||
}
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From e2774d80fc6cd0de872259c555f21ae2e8f8bf2c Mon Sep 17 00:00:00 2001
|
||||
From 96aed2ae04eb83bcacc6f9e9dc26143852a54369 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 26 Apr 2020 08:56:13 +0000
|
||||
Subject: [PATCH 08/19] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
||||
Subject: [PATCH 10/22] UI: Use SNAP_FIXED_RATIO for multi-window globally
|
||||
|
||||
Enables multiple snap targets under landscape for phone UI
|
||||
|
||||
@@ -40,7 +40,7 @@ index 7308dc5882c1..000000000000
|
||||
-</resources>
|
||||
\ No newline at end of file
|
||||
diff --git a/core/res/res/values-sw600dp/config.xml b/core/res/res/values-sw600dp/config.xml
|
||||
index 34b6a54be493..3921c9edfeac 100644
|
||||
index 624581aba7dd..658654e2a63f 100644
|
||||
--- a/core/res/res/values-sw600dp/config.xml
|
||||
+++ b/core/res/res/values-sw600dp/config.xml
|
||||
@@ -3,16 +3,16 @@
|
||||
@@ -78,10 +78,10 @@ index 34b6a54be493..3921c9edfeac 100644
|
||||
Only applies if the device display is not square. -->
|
||||
<bool name="config_navBarCanMove">false</bool>
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index d8f280ddbf93..3a62b51d3cbc 100644
|
||||
index 9d6c712c8285..1b9306913e7d 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -3531,7 +3531,7 @@
|
||||
@@ -3589,7 +3589,7 @@
|
||||
1 - 3 snap targets: fixed ratio, 1:1, (1 - fixed ratio)
|
||||
2 - 1 snap target: 1:1
|
||||
-->
|
||||
@@ -1,32 +0,0 @@
|
||||
From 69866119d54b6e5aee80530f4030980ef0ab28c1 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 5 Oct 2021 21:01:15 -0700
|
||||
Subject: [PATCH 11/19] SystemUI: Always refresh power menu on UI mode change
|
||||
|
||||
This is necessary for reliably theming the global actions dialog with
|
||||
dynamic colors and adapting it to light/dark themes.
|
||||
|
||||
Demo screenshots (with color overlays applied):
|
||||
https://twitter.com/kdrag0n/status/1445960685427433473
|
||||
|
||||
Change-Id: Id6f6623096ed231e841ca3794b47f8a0ab54dae6
|
||||
---
|
||||
.../android/systemui/globalactions/GlobalActionsDialogLite.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
index 11da4f5ca39e..afe2629fd53d 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
@@ -762,7 +762,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
||||
@Override
|
||||
public void onUiModeChanged() {
|
||||
mContext.getTheme().applyStyle(mContext.getThemeResId(), true);
|
||||
- if (mDialog != null && mDialog.isShowing()) {
|
||||
+ if (mDialog != null) {
|
||||
mDialog.refreshDialog();
|
||||
}
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
From f38c5f4211a7454f4232d55322939b2b07716937 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 14 Oct 2021 15:45:24 +0000
|
||||
Subject: [PATCH 11/22] UI: Unblock alarm status bar icon
|
||||
|
||||
That's very Zen of you, Google...
|
||||
|
||||
Change-Id: I2c9f91f47bb1e324a20c13d588dcdbbca91dc12e
|
||||
---
|
||||
.../statusbar/phone/KeyguardStatusBarViewController.java | 1 -
|
||||
.../statusbar/phone/fragment/CollapsedStatusBarFragment.java | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java
|
||||
index 20e20e19ce11..69936c63c7ed 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewController.java
|
||||
@@ -264,7 +264,6 @@ public class KeyguardStatusBarViewController extends ViewController<KeyguardStat
|
||||
|
||||
Resources r = getResources();
|
||||
mBlockedIcons = Collections.unmodifiableList(Arrays.asList(
|
||||
- r.getString(com.android.internal.R.string.status_bar_alarm_clock),
|
||||
r.getString(com.android.internal.R.string.status_bar_call_strength)));
|
||||
mNotificationsHeaderCollideDistance = r.getDimensionPixelSize(
|
||||
R.dimen.header_notifications_collide_distance);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/CollapsedStatusBarFragment.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/CollapsedStatusBarFragment.java
|
||||
index 87e6d62fb088..f5daaa8c7002 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/CollapsedStatusBarFragment.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/CollapsedStatusBarFragment.java
|
||||
@@ -195,7 +195,6 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
|
||||
}
|
||||
mDarkIconManager = new DarkIconManager(view.findViewById(R.id.statusIcons), mFeatureFlags);
|
||||
mDarkIconManager.setShouldLog(true);
|
||||
- mBlockedIcons.add(getString(com.android.internal.R.string.status_bar_alarm_clock));
|
||||
mBlockedIcons.add(getString(com.android.internal.R.string.status_bar_call_strength));
|
||||
mDarkIconManager.setBlockList(mBlockedIcons);
|
||||
mStatusBarIconController.addIconGroup(mDarkIconManager);
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 262b65f0ca1c307215c538c378775874c054ef01 Mon Sep 17 00:00:00 2001
|
||||
From b6213d20b46e5601cbb9b31325ca6ce3f32fac03 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 3 Nov 2020 22:43:12 -0800
|
||||
Subject: [PATCH 10/19] core: Remove old app target SDK dialog
|
||||
Subject: [PATCH 12/22] core: Remove old app target SDK dialog
|
||||
|
||||
If an app is old, users should already know that, and there's usually no
|
||||
point in warning them about it because they would already be using a
|
||||
@@ -0,0 +1,41 @@
|
||||
From 894572f399ce6132eae919fa2106e8554648c79c Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 8 Mar 2022 20:37:33 -0800
|
||||
Subject: [PATCH 13/22] SystemUI: Always refresh power menu on UI mode change
|
||||
|
||||
This is necessary for reliably theming the global actions dialog with
|
||||
dynamic colors and adapting it to light/dark themes.
|
||||
|
||||
Demo screenshots (with color overlays applied):
|
||||
https://twitter.com/kdrag0n/status/1445960685427433473
|
||||
|
||||
[kdrag0n: ported to 12L]
|
||||
|
||||
Change-Id: If58fb4079a4cd11414ff928fad3576beecb14ff5
|
||||
---
|
||||
.../systemui/globalactions/GlobalActionsDialogLite.java | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
index bddf5756f925..0ed1042f21e2 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java
|
||||
@@ -787,6 +787,15 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
||||
&& (currentUser == null || currentUser.isPrimary());
|
||||
}
|
||||
|
||||
+ @Override
|
||||
+ public void onUiModeChanged() {
|
||||
+ // Colors may change, depending on UI mode
|
||||
+ mContext.getTheme().applyStyle(mContext.getThemeResId(), true);
|
||||
+ if (mDialog != null) {
|
||||
+ mDialog.refreshDialog();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
@Override
|
||||
public void onConfigChanged(Configuration newConfig) {
|
||||
if (mDialog != null && mDialog.isShowing()
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From a08e7b27c44c384da58a118f5a0f3290a37f07da Mon Sep 17 00:00:00 2001
|
||||
From 4424a099b13b1ec10580134071384fa498ff3356 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Sat, 9 Oct 2021 14:39:38 -0700
|
||||
Subject: [PATCH 12/19] SystemUI: Use Monet colors for power menu
|
||||
Subject: [PATCH 14/22] SystemUI: Use Monet colors for power menu
|
||||
|
||||
It's odd that the power menu doesn't use Monet colors, unlike most of
|
||||
System UI. This makes it feel more integrated with the rest of the
|
||||
@@ -14,7 +14,7 @@ Change-Id: Iaffb178fe2c09a33925cb40e89d78640fab2b23c
|
||||
2 files changed, 12 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml
|
||||
index b98694e2fae7..3a6b62dfe1c8 100644
|
||||
index fcb369876cf2..a0015a72f268 100644
|
||||
--- a/packages/SystemUI/res/values-night/colors.xml
|
||||
+++ b/packages/SystemUI/res/values-night/colors.xml
|
||||
@@ -99,4 +99,11 @@
|
||||
@@ -30,11 +30,11 @@ index b98694e2fae7..3a6b62dfe1c8 100644
|
||||
+ <color name="global_actions_lite_emergency_icon">@*android:color/accent_device_default_dark</color>
|
||||
</resources>
|
||||
diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml
|
||||
index f539b0cf68a1..9ea915c1cb3f 100644
|
||||
index e455aaa225be..04d4fedccdec 100644
|
||||
--- a/packages/SystemUI/res/values/colors.xml
|
||||
+++ b/packages/SystemUI/res/values/colors.xml
|
||||
@@ -53,11 +53,11 @@
|
||||
<color name="global_actions_emergency_text">@color/GM2_grey_100</color>
|
||||
@@ -34,11 +34,11 @@
|
||||
<color name="global_actions_grid_background">#F1F3F4</color>
|
||||
|
||||
<!-- Colors for Power Menu Lite -->
|
||||
- <color name="global_actions_lite_background">#191C18</color>
|
||||
@@ -1,7 +1,7 @@
|
||||
From 09ea8e6106959f6c8a6399227ee029d1feace6b2 Mon Sep 17 00:00:00 2001
|
||||
From bf258bd06284df94c2872e677679299d2498b4df Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Wed, 6 Oct 2021 18:40:30 -0700
|
||||
Subject: [PATCH 13/19] Revert "Make QS always use dark theme colors"
|
||||
Subject: [PATCH 15/22] Revert "Make QS always use dark theme colors"
|
||||
|
||||
This reverts commit d62f7249f9e3222da95ecf6816601c408aac6be5.
|
||||
|
||||
@@ -15,11 +15,11 @@ Change-Id: Iac4c96ccb3845812ca3df820bf27dc533816f72e
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/layout/quick_qs_status_icons.xml b/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
index 42a7c895ff84..27514617fb23 100644
|
||||
index 542a1c9d22bd..7a370d8cbc48 100644
|
||||
--- a/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
+++ b/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
@@ -24,7 +24,7 @@
|
||||
android:minHeight="48dp"
|
||||
android:minHeight="@dimen/qs_header_row_min_height"
|
||||
android:clickable="false"
|
||||
android:focusable="true"
|
||||
- android:theme="@style/Theme.SystemUI.QuickSettings.Header">
|
||||
@@ -28,10 +28,10 @@ index 42a7c895ff84..27514617fb23 100644
|
||||
<LinearLayout
|
||||
android:id="@+id/clock_container"
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index 93d60cce2915..e592fe2dd630 100644
|
||||
index f26159f5176a..e2665f879e5e 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -395,7 +395,7 @@
|
||||
@@ -326,7 +326,7 @@
|
||||
<item name="*android:dotColor">?android:attr/textColorSecondary</item>
|
||||
</style>
|
||||
|
||||
@@ -40,7 +40,7 @@ index 93d60cce2915..e592fe2dd630 100644
|
||||
<item name="lightIconTheme">@style/QSIconTheme</item>
|
||||
<item name="darkIconTheme">@style/QSIconTheme</item>
|
||||
<item name="android:colorError">@*android:color/error_color_material_dark</item>
|
||||
@@ -486,7 +486,7 @@
|
||||
@@ -421,7 +421,7 @@
|
||||
<item name="singleToneColor">@color/dark_mode_qs_icon_color_single_tone</item>
|
||||
</style>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 9bce4fe471a1d7c107fad69b9285525041feed72 Mon Sep 17 00:00:00 2001
|
||||
From f245cb8f21951c04b094708eb0c9c67bcb2fa795 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Wed, 6 Oct 2021 18:41:11 -0700
|
||||
Subject: [PATCH 14/19] Revert "Do not re-inflate QS and SB when
|
||||
Subject: [PATCH 16/22] Revert "Do not re-inflate QS and SB when
|
||||
CONFIG_UI_MODE"
|
||||
|
||||
This reverts commit 8a40ff855b86bc86e23367017002289920855a4e.
|
||||
@@ -15,10 +15,10 @@ Change-Id: Ibad399ece587505559cc73febdda2f2d8558e94d
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java b/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
||||
index b45dc52585ad..87d90adceba5 100644
|
||||
index 10878dcc2474..483865186945 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/fragments/FragmentHostManager.java
|
||||
@@ -54,7 +54,8 @@ public class FragmentHostManager {
|
||||
@@ -53,7 +53,8 @@ public class FragmentHostManager {
|
||||
private final View mRootView;
|
||||
private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
|
||||
ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
|
||||
@@ -1,7 +1,7 @@
|
||||
From c87db4a6ea8c4c399dd92923dd28f2533246c293 Mon Sep 17 00:00:00 2001
|
||||
From dae69872bd37ea8b2f4877ecb44ef5338f589079 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Mon, 11 Oct 2021 19:24:58 -0700
|
||||
Subject: [PATCH 15/19] SystemUI: Follow light/dark theme in quick settings
|
||||
Subject: [PATCH 17/22] SystemUI: Follow light/dark theme in quick settings
|
||||
|
||||
Android 12's dual-tone style where the quick settings panel is always
|
||||
dark makes the light theme look like a second-class citizen. Pure black
|
||||
@@ -22,18 +22,22 @@ the notification shade.
|
||||
Demo screenshots (with dual-tone commit):
|
||||
https://twitter.com/kdrag0n/status/1445922541218922496
|
||||
|
||||
[kdrag0n: ported to 12L]
|
||||
|
||||
Change-Id: I3d45b72f0f119e100505409d178ab8f698993881
|
||||
---
|
||||
.../brightness_progress_full_drawable.xml | 2 +-
|
||||
.../qs_footer_action_chip_background.xml | 8 +----
|
||||
.../qs_security_footer_background.xml | 3 +-
|
||||
packages/SystemUI/res/values-night/styles.xml | 12 ++++++++
|
||||
packages/SystemUI/res/values/styles.xml | 10 +++----
|
||||
.../systemui/privacy/OngoingPrivacyChip.kt | 4 +--
|
||||
.../qs_footer_action_chip_background.xml | 8 +-------
|
||||
.../qs_security_footer_background.xml | 3 +--
|
||||
.../res/layout/combined_qs_header.xml | 4 ++--
|
||||
.../res/layout/split_shade_header.xml | 2 +-
|
||||
packages/SystemUI/res/values-night/styles.xml | 12 +++++++++++
|
||||
packages/SystemUI/res/values/styles.xml | 10 +++++-----
|
||||
.../systemui/privacy/OngoingPrivacyChip.kt | 4 ++--
|
||||
.../systemui/qs/tileimpl/QSTileViewImpl.kt | 2 +-
|
||||
.../statusbar/phone/ScrimController.java | 2 +-
|
||||
.../systemui/statusbar/phone/ScrimState.java | 30 +++++++++----------
|
||||
9 files changed, 39 insertions(+), 34 deletions(-)
|
||||
.../systemui/statusbar/phone/ScrimState.java | 20 +++++++++----------
|
||||
11 files changed, 37 insertions(+), 32 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/drawable/brightness_progress_full_drawable.xml b/packages/SystemUI/res/drawable/brightness_progress_full_drawable.xml
|
||||
index 4d9188c40822..1eae667c6e79 100644
|
||||
@@ -81,8 +85,41 @@ index 860d23b11439..8f12b95ed4f6 100644
|
||||
<corners android:radius="@dimen/qs_security_footer_corner_radius"/>
|
||||
</shape>
|
||||
</item>
|
||||
diff --git a/packages/SystemUI/res/layout/combined_qs_header.xml b/packages/SystemUI/res/layout/combined_qs_header.xml
|
||||
index 1f10e5dfeed8..4e46c42a053a 100644
|
||||
--- a/packages/SystemUI/res/layout/combined_qs_header.xml
|
||||
+++ b/packages/SystemUI/res/layout/combined_qs_header.xml
|
||||
@@ -26,7 +26,7 @@
|
||||
android:paddingLeft="@dimen/qs_panel_padding"
|
||||
android:paddingRight="@dimen/qs_panel_padding"
|
||||
android:visibility="gone"
|
||||
- android:theme="@style/Theme.SystemUI.QuickSettings.Header"
|
||||
+ android:theme="@style/QSHeaderTheme"
|
||||
app:layoutDescription="@xml/combined_qs_header_scene">
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
@@ -101,4 +101,4 @@
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
/>
|
||||
|
||||
-</androidx.constraintlayout.motion.widget.MotionLayout>
|
||||
\ No newline at end of file
|
||||
+</androidx.constraintlayout.motion.widget.MotionLayout>
|
||||
diff --git a/packages/SystemUI/res/layout/split_shade_header.xml b/packages/SystemUI/res/layout/split_shade_header.xml
|
||||
index b6e96ceeaf20..ecb017a3b606 100644
|
||||
--- a/packages/SystemUI/res/layout/split_shade_header.xml
|
||||
+++ b/packages/SystemUI/res/layout/split_shade_header.xml
|
||||
@@ -25,7 +25,7 @@
|
||||
android:paddingLeft="@dimen/qs_panel_padding"
|
||||
android:paddingRight="@dimen/qs_panel_padding"
|
||||
android:visibility="gone"
|
||||
- android:theme="@style/Theme.SystemUI.QuickSettings.Header">
|
||||
+ android:theme="@style/QSHeaderTheme">
|
||||
|
||||
<com.android.systemui.statusbar.policy.Clock
|
||||
android:id="@+id/clock"
|
||||
diff --git a/packages/SystemUI/res/values-night/styles.xml b/packages/SystemUI/res/values-night/styles.xml
|
||||
index dd999837a1ba..3fd6f9cc5454 100644
|
||||
index e82230ab5fbc..897f7ae00824 100644
|
||||
--- a/packages/SystemUI/res/values-night/styles.xml
|
||||
+++ b/packages/SystemUI/res/values-night/styles.xml
|
||||
@@ -24,6 +24,18 @@
|
||||
@@ -105,10 +142,10 @@ index dd999837a1ba..3fd6f9cc5454 100644
|
||||
<item name="android:fontFamily">@*android:string/config_bodyFontFamilyMedium</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index e592fe2dd630..a5ed039bd3fd 100644
|
||||
index e2665f879e5e..47344cb6d352 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -398,12 +398,12 @@
|
||||
@@ -329,12 +329,12 @@
|
||||
<style name="Theme.SystemUI.QuickSettings" parent="@*android:style/Theme.DeviceDefault.SystemUI">
|
||||
<item name="lightIconTheme">@style/QSIconTheme</item>
|
||||
<item name="darkIconTheme">@style/QSIconTheme</item>
|
||||
@@ -125,7 +162,7 @@ index e592fe2dd630..a5ed039bd3fd 100644
|
||||
<item name="android:itemTextAppearance">@style/Control.MenuItem</item>
|
||||
</style>
|
||||
|
||||
@@ -619,7 +619,7 @@
|
||||
@@ -540,7 +540,7 @@
|
||||
|
||||
<style name="QSCustomizeToolbar" parent="@*android:style/Widget.DeviceDefault.Toolbar">
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
@@ -150,11 +187,11 @@ index 9cd97ff8e343..461f67935a11 100644
|
||||
val padding = context.resources
|
||||
.getDimensionPixelSize(R.dimen.ongoing_appops_chip_side_padding)
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
|
||||
index 222539d49526..da7c63ff15a3 100644
|
||||
index 9d60e63032c3..405080c32807 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
|
||||
@@ -70,7 +70,7 @@ open class QSTileViewImpl @JvmOverloads constructor(
|
||||
override var heightOverride: Int = HeightOverrideable.NO_OVERRIDE
|
||||
@@ -83,7 +83,7 @@ open class QSTileViewImpl @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
private val colorActive = Utils.getColorAttrDefaultColor(context,
|
||||
- com.android.internal.R.attr.colorAccentPrimary)
|
||||
@@ -163,10 +200,10 @@ index 222539d49526..da7c63ff15a3 100644
|
||||
private val colorUnavailable = Utils.applyAlpha(UNAVAILABLE_ALPHA, colorInactive)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
index 27c129ad34c5..6bdf82a60e40 100644
|
||||
index 1077347eab0a..fd44a9b5a5b3 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
@@ -692,7 +692,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -704,7 +704,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
mNotificationsAlpha = behindAlpha;
|
||||
mNotificationsTint = behindTint;
|
||||
mBehindAlpha = 1;
|
||||
@@ -176,19 +213,19 @@ index 27c129ad34c5..6bdf82a60e40 100644
|
||||
mBehindAlpha = behindAlpha;
|
||||
if (mState == ScrimState.SHADE_LOCKED) {
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
|
||||
index 15b8c67fd4ba..e81642f7d491 100644
|
||||
index 9246c0e73289..b30641bbf1af 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
|
||||
@@ -88,7 +88,7 @@ public enum ScrimState {
|
||||
@@ -82,7 +82,7 @@ public enum ScrimState {
|
||||
mBehindAlpha = mClipQsScrim ? 1 : mScrimBehindAlphaKeyguard;
|
||||
mNotifAlpha = mClipQsScrim ? mScrimBehindAlphaKeyguard : 0;
|
||||
mBubbleAlpha = 0;
|
||||
if (mClipQsScrim) {
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -114,7 +114,7 @@ public enum ScrimState {
|
||||
@@ -119,7 +119,7 @@ public enum ScrimState {
|
||||
@Override
|
||||
public void prepare(ScrimState previousState) {
|
||||
mBehindAlpha = mClipQsScrim ? 1 : mDefaultScrimAlpha;
|
||||
@@ -197,9 +234,9 @@ index 15b8c67fd4ba..e81642f7d491 100644
|
||||
mNotifAlpha = mClipQsScrim ? mDefaultScrimAlpha : 0;
|
||||
mNotifTint = Color.TRANSPARENT;
|
||||
mFrontAlpha = 0f;
|
||||
@@ -141,17 +141,17 @@ public enum ScrimState {
|
||||
@@ -143,17 +143,17 @@ public enum ScrimState {
|
||||
mBehindAlpha = mClipQsScrim ? 1 : mDefaultScrimAlpha;
|
||||
mNotifAlpha = 1f;
|
||||
mBubbleAlpha = 0f;
|
||||
mFrontAlpha = 0f;
|
||||
- mBehindTint = Color.BLACK;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
@@ -218,13 +255,12 @@ index 15b8c67fd4ba..e81642f7d491 100644
|
||||
}
|
||||
},
|
||||
|
||||
@@ -248,27 +248,27 @@ public enum ScrimState {
|
||||
@@ -244,22 +244,22 @@ public enum ScrimState {
|
||||
mAnimateChange = !mLaunchingAffordanceWithPreview && !fromAod;
|
||||
|
||||
mFrontTint = Color.TRANSPARENT;
|
||||
- mBehindTint = Color.BLACK;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
mBubbleTint = Color.TRANSPARENT;
|
||||
mBlankScreen = false;
|
||||
|
||||
if (previousState == ScrimState.AOD) {
|
||||
@@ -232,15 +268,11 @@ index 15b8c67fd4ba..e81642f7d491 100644
|
||||
updateScrimColor(mScrimInFront, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT /* tint */);
|
||||
if (mScrimForBubble != null) {
|
||||
updateScrimColor(mScrimForBubble, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
}
|
||||
|
||||
// Scrims should still be black at the end of the transition.
|
||||
mFrontTint = Color.BLACK;
|
||||
- mBehindTint = Color.BLACK;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
mBubbleTint = Color.BLACK;
|
||||
mBlankScreen = true;
|
||||
}
|
||||
|
||||
@@ -249,41 +281,8 @@ index 15b8c67fd4ba..e81642f7d491 100644
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -290,27 +290,27 @@ public enum ScrimState {
|
||||
mAnimateChange = !mLaunchingAffordanceWithPreview;
|
||||
|
||||
mFrontTint = Color.TRANSPARENT;
|
||||
- mBehindTint = Color.BLACK;
|
||||
- mBubbleTint = Color.BLACK;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
+ mBubbleTint = Color.TRANSPARENT;
|
||||
mBlankScreen = false;
|
||||
|
||||
if (previousState == ScrimState.AOD) {
|
||||
// Set all scrims black, before they fade transparent.
|
||||
updateScrimColor(mScrimInFront, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT /* tint */);
|
||||
if (mScrimForBubble != null) {
|
||||
updateScrimColor(mScrimForBubble, 1f /* alpha */, Color.BLACK /* tint */);
|
||||
}
|
||||
|
||||
// Scrims should still be black at the end of the transition.
|
||||
mFrontTint = Color.BLACK;
|
||||
- mBehindTint = Color.BLACK;
|
||||
+ mBehindTint = Color.TRANSPARENT;
|
||||
mBubbleTint = Color.BLACK;
|
||||
mBlankScreen = true;
|
||||
}
|
||||
|
||||
if (mClipQsScrim) {
|
||||
- updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK);
|
||||
+ updateScrimColor(mScrimBehind, 1f /* alpha */, Color.TRANSPARENT);
|
||||
}
|
||||
|
||||
mAnimationDuration = ScrimController.ANIMATION_DURATION;
|
||||
@@ -468,4 +468,4 @@ public enum ScrimState {
|
||||
};
|
||||
@@ -399,4 +399,4 @@ public enum ScrimState {
|
||||
public void setClipQsScrim(boolean clipsQsScrim) {
|
||||
mClipQsScrim = clipsQsScrim;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
From 57277759d1f5aa1d81f2121bc4d69edfed807cea Mon Sep 17 00:00:00 2001
|
||||
From cee09b3e6dfdf780f6dab8d4d679a5a4c6ef9d23 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Mon, 11 Oct 2021 19:25:02 -0700
|
||||
Subject: [PATCH 16/19] SystemUI: Initialize QS tiles in inactive state
|
||||
Subject: [PATCH 18/22] SystemUI: Initialize QS tiles in inactive state
|
||||
|
||||
Now that the QS fragment is recreated when changing the UI mode (so that
|
||||
it follows light/dark themes), all tiles flash with active color briefly
|
||||
@@ -1,7 +1,7 @@
|
||||
From d8e58fc80da5875d4a909d349413a4308a35a272 Mon Sep 17 00:00:00 2001
|
||||
From 78af3b38ba93d5548bda677eac35519bb5b5fd7c Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Mon, 11 Oct 2021 19:25:08 -0700
|
||||
Subject: [PATCH 17/19] SystemUI: Add dual-tone light and dark themes for QS
|
||||
Subject: [PATCH 19/22] SystemUI: Add dual-tone light and dark themes for QS
|
||||
|
||||
Google's dual-tone QS design where the notification panel has a
|
||||
semantically higher elevation adds depth to the notification+QS shade,
|
||||
@@ -80,10 +80,10 @@ index 1571fab66a5b..0683c20a4a4c 100644
|
||||
<item name="alertDialogTheme">@style/Theme.DeviceDefault.Dialog.Alert</item>
|
||||
<item name="forceDarkAllowed">false</item>
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index a5ed039bd3fd..bb258ab18f82 100644
|
||||
index 47344cb6d352..ba0361de6e8b 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -402,7 +402,7 @@
|
||||
@@ -333,7 +333,7 @@
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
|
||||
<item name="offStateColor">@*android:color/surface_light</item>
|
||||
@@ -93,10 +93,10 @@ index a5ed039bd3fd..bb258ab18f82 100644
|
||||
<item name="android:itemTextAppearance">@style/Control.MenuItem</item>
|
||||
</style>
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
index 6bdf82a60e40..cc1c8e6255b8 100644
|
||||
index fd44a9b5a5b3..00db68981eb6 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
|
||||
@@ -186,6 +186,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -180,6 +180,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
private UnlockedScreenOffAnimationController mUnlockedScreenOffAnimationController;
|
||||
|
||||
private GradientColors mColors;
|
||||
@@ -104,15 +104,15 @@ index 6bdf82a60e40..cc1c8e6255b8 100644
|
||||
private boolean mNeedsDrawableColorUpdate;
|
||||
|
||||
private float mScrimBehindAlphaKeyguard = KEYGUARD_SCRIM_ALPHA;
|
||||
@@ -284,6 +285,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
});
|
||||
@@ -276,6 +277,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
);
|
||||
|
||||
mColors = new GradientColors();
|
||||
+ mBehindColors = new GradientColors();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -851,7 +853,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -874,7 +876,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
&& !mBlankScreen;
|
||||
|
||||
mScrimInFront.setColors(mColors, animateScrimInFront);
|
||||
@@ -121,7 +121,7 @@ index 6bdf82a60e40..cc1c8e6255b8 100644
|
||||
mNotificationsScrim.setColors(mColors, animateScrimNotifications);
|
||||
|
||||
dispatchBackScrimState(mScrimBehind.getViewAlpha());
|
||||
@@ -1207,11 +1209,20 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
@@ -1214,11 +1216,20 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
|
||||
if (mScrimBehind == null) return;
|
||||
int background = Utils.getColorAttr(mScrimBehind.getContext(),
|
||||
android.R.attr.colorBackgroundFloating).getDefaultColor();
|
||||
@@ -1,7 +1,7 @@
|
||||
From 3606dbe992a728d9e348d1d1802c189cc6a393f7 Mon Sep 17 00:00:00 2001
|
||||
From c788defdb9c94c2537315a1b3eb08528ab807db0 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Tue, 5 Oct 2021 21:01:50 -0700
|
||||
Subject: [PATCH 18/19] Paint: Enable subpixel text positioning by default
|
||||
Subject: [PATCH 20/22] Paint: Enable subpixel text positioning by default
|
||||
|
||||
On desktop Linux, subpixel text positioning is necessary to avoid
|
||||
kerning issues, and Android is no different. Even though most phone
|
||||
@@ -0,0 +1,41 @@
|
||||
From dc81ab2729689f570fa04c72496b20ea98792706 Mon Sep 17 00:00:00 2001
|
||||
From: Danny Lin <danny@kdrag0n.dev>
|
||||
Date: Fri, 18 Mar 2022 23:19:54 -0700
|
||||
Subject: [PATCH 21/22] monet: Fix overly low chroma for tones below 90
|
||||
|
||||
Chroma is capped to 40 for light colors of L* 90 and above for valid
|
||||
reasons. However, assigning the capped value to "chroma" fails to
|
||||
account for the fact that chroma is an argument passed to the method,
|
||||
so the capping effect persists across iterations. This unintentionally
|
||||
affects and limits the chroma of *all* shades because the first
|
||||
iteration of the loop is L*=90.
|
||||
|
||||
As a result, almost all colors are less chromatic than the intended
|
||||
chroma >= 48. Fix the issue by assigning capped chroma to a temporary
|
||||
per-iteration variable.
|
||||
|
||||
Change-Id: I18102d0072c89535e27f23fdb98af7c83864ff7e
|
||||
---
|
||||
.../monet/src/com/android/systemui/monet/Shades.java | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java b/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java
|
||||
index aab3538e3c4c..c5b9458614e1 100644
|
||||
--- a/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java
|
||||
+++ b/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java
|
||||
@@ -59,10 +59,8 @@ public class Shades {
|
||||
shades[1] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 95);
|
||||
for (int i = 2; i < 12; i++) {
|
||||
float lStar = (i == 6) ? MIDDLE_LSTAR : 100 - 10 * (i - 1);
|
||||
- if (lStar >= 90) {
|
||||
- chroma = Math.min(40f, chroma);
|
||||
- }
|
||||
- shades[i] = ColorUtils.CAMToColor(hue, chroma, lStar);
|
||||
+ float shadeChroma = (lStar >= 90) ? Math.min(40f, chroma) : chroma;
|
||||
+ shades[i] = ColorUtils.CAMToColor(hue, shadeChroma, lStar);
|
||||
}
|
||||
return shades;
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From e6bb7fa0f413c0f68bd021bca26fac6a060e52b1 Mon Sep 17 00:00:00 2001
|
||||
From 708976d1ac2ea6cbf3498f546e53488736dfd471 Mon Sep 17 00:00:00 2001
|
||||
From: SagarMakhar <sagarmakhar@gmail.com>
|
||||
Date: Sat, 6 Nov 2021 13:16:24 +0000
|
||||
Subject: [PATCH 19/19] Fix QS clock being white on light theme
|
||||
Subject: [PATCH 22/22] Fix QS clock being white on light theme
|
||||
|
||||
Steps to reproduce without this commit:
|
||||
- Turn off dark theme
|
||||
@@ -16,39 +16,39 @@ Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
|
||||
1 file changed, 13 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeaderController.java b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeaderController.java
|
||||
index 18d6e646b007..7aa668440b4b 100644
|
||||
index 2dc4ee4e0064..c9e9b2ad69d0 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeaderController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeaderController.java
|
||||
@@ -22,10 +22,8 @@ import android.view.View.OnClickListener;
|
||||
@@ -18,10 +18,8 @@ package com.android.systemui.qs;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import android.os.Bundle;
|
||||
|
||||
-import com.android.internal.colorextraction.ColorExtractor;
|
||||
import com.android.internal.logging.UiEventLogger;
|
||||
import com.android.systemui.R;
|
||||
import com.android.systemui.battery.BatteryMeterViewController;
|
||||
-import com.android.systemui.colorextraction.SysuiColorExtractor;
|
||||
import com.android.systemui.demomode.DemoMode;
|
||||
import com.android.systemui.demomode.DemoModeController;
|
||||
import com.android.systemui.plugins.ActivityStarter;
|
||||
@@ -83,9 +81,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
private final String mMicSlot;
|
||||
private final String mLocationSlot;
|
||||
import com.android.systemui.flags.FeatureFlags;
|
||||
@@ -64,9 +62,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
|
||||
private boolean mListening;
|
||||
|
||||
- private SysuiColorExtractor mColorExtractor;
|
||||
- private ColorExtractor.OnColorsChangedListener mOnColorsChangedListener;
|
||||
-
|
||||
private PrivacyItemController.Callback mPICCallback = new PrivacyItemController.Callback() {
|
||||
@Override
|
||||
public void onPrivacyItemsChanged(@NonNull List<PrivacyItem> privacyItems) {
|
||||
@@ -135,7 +130,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
@Inject
|
||||
QuickStatusBarHeaderController(QuickStatusBarHeader view,
|
||||
HeaderPrivacyIconsController headerPrivacyIconsController,
|
||||
@@ -74,7 +69,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
DemoModeController demoModeController,
|
||||
QuickQSPanelController quickQSPanelController,
|
||||
QSCarrierGroupController.Builder qsCarrierGroupControllerBuilder,
|
||||
PrivacyLogger privacyLogger,
|
||||
- SysuiColorExtractor colorExtractor,
|
||||
PrivacyDialogController privacyDialogController,
|
||||
QSExpansionPathInterpolator qsExpansionPathInterpolator,
|
||||
BatteryMeterViewController batteryMeterViewController,
|
||||
FeatureFlags featureFlags,
|
||||
@@ -168,12 +162,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
@@ -104,12 +98,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
|
||||
mIconManager = new StatusBarIconController.TintedIconManager(mIconContainer, featureFlags);
|
||||
mDemoModeReceiver = new ClockDemoModeReceiver(mClockView);
|
||||
@@ -59,14 +59,14 @@ index 18d6e646b007..7aa668440b4b 100644
|
||||
- };
|
||||
- mColorExtractor.addOnColorsChangedListener(mOnColorsChangedListener);
|
||||
|
||||
mCameraSlot = getResources().getString(com.android.internal.R.string.status_bar_camera);
|
||||
mMicSlot = getResources().getString(com.android.internal.R.string.status_bar_microphone);
|
||||
@@ -223,7 +211,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
// Don't need to worry about tuner settings for this icon
|
||||
mBatteryMeterViewController.ignoreTunerUpdates();
|
||||
@@ -157,7 +145,6 @@ class QuickStatusBarHeaderController extends ViewController<QuickStatusBarHeader
|
||||
|
||||
@Override
|
||||
protected void onViewDetached() {
|
||||
- mColorExtractor.removeOnColorsChangedListener(mOnColorsChangedListener);
|
||||
mPrivacyChip.setOnClickListener(null);
|
||||
mPrivacyIconsController.onParentInvisible();
|
||||
mStatusBarIconController.removeIconGroup(mIconManager);
|
||||
mQSCarrierGroupController.setOnSingleCarrierChangedListener(null);
|
||||
--
|
||||
Reference in New Issue
Block a user