commit | 8961c3c62037e4dc869a520443c16d4431143339 | [log] [tgz] |
---|---|---|
author | Arian <arian.kulmer@web.de> | Wed Jul 27 18:09:52 2022 +0200 |
committer | SamarV-121 <samar@samarv121.dev> | Thu Mar 21 10:04:39 2024 +0530 |
tree | eda7421c2d0ef989b70f03f4dc142d4497067a58 | |
parent | ee51de1cfa81a64d1a59398e8cd432fd52a6cf72 [diff] |
SystemUI: VolumeDialogImpl: Change bg tint for inactive rows The secondary accent in light mode does not have a good contrast to the previously white icon. Previously: https://imgur.com/a/XHpDHDJ Now: https://imgur.com/a/QCk3QwC Change-Id: Ib61ad4803e0e3c6cc9163408137c7a16742922b6
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java index fe9e679..5b8c73a 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
@@ -2017,8 +2017,9 @@ ? Color.alpha(colorTint.getDefaultColor()) : getAlphaAttr(android.R.attr.secondaryContentAlpha); - final ColorStateList bgTint = Utils.getColorAttr( - mContext, android.R.attr.colorBackgroundFloating); + final ColorStateList bgTint = useActiveColoring + ? Utils.getColorAttr(mContext, android.R.attr.colorBackgroundFloating) + : Utils.getColorAttr(mContext, com.android.internal.R.attr.textColorOnAccent); final ColorStateList inverseTextTint = Utils.getColorAttr( mContext, com.android.internal.R.attr.textColorOnAccent);