From c84b629202ee60515734b3798e5914cda8a6424b Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Wed, 10 Jan 2024 23:36:41 +0800 Subject: [PATCH 31/31] SystemUI: Follow monet theme on battery chip Why does this chip even exist... Change-Id: I178fdda5d8d310c4c7fa5f05f9911b3f94986cb9 --- packages/SystemUI/res/drawable/statusbar_chip_bg.xml | 8 +++----- .../com/android/systemui/statusbar/BatteryStatusChip.kt | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/res/drawable/statusbar_chip_bg.xml b/packages/SystemUI/res/drawable/statusbar_chip_bg.xml index d7de16d7c5bb..dd1db04e77d7 100644 --- a/packages/SystemUI/res/drawable/statusbar_chip_bg.xml +++ b/packages/SystemUI/res/drawable/statusbar_chip_bg.xml @@ -15,9 +15,7 @@ limitations under the License. --> - - + + - \ No newline at end of file + diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt b/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt index 520976746785..e22a599ed80e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BatteryStatusChip.kt @@ -64,9 +64,9 @@ class BatteryStatusChip @JvmOverloads constructor(context: Context, attrs: Attri @SuppressLint("UseCompatLoadingForDrawables") private fun updateResources() { val primaryColor = - Utils.getColorAttrDefaultColor(context, com.android.internal.R.attr.colorPrimary) + Utils.getColorAttrDefaultColor(context, android.R.attr.textColorPrimaryInverse) val textColorSecondary = - Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorSecondary) + Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorSecondaryInverse) batteryMeterView.updateColors(primaryColor, textColorSecondary, primaryColor) roundedContainer.background = mContext.getDrawable(R.drawable.statusbar_chip_bg) } -- 2.34.1