SystemUI: Fix ongoing progress bar color in light mode

Change-Id: Id3611415196ad8e58a97735fb4ad4af57ef5fe69
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
This commit is contained in:
Ghosuto
2025-12-28 04:47:55 +00:00
parent 52d2676833
commit e315f3cb4a
4 changed files with 18 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
<item>
<shape android:shape="rectangle">
<solid android:color="@androidprv:color/materialColorSurfaceBright"/>
<solid android:color="@color/island_background_color"/>
<corners android:radius="@dimen/overlay_action_container_corner_radius"/>
</shape>
</item>

View File

@@ -6,4 +6,7 @@
<resources>
<!-- Sfps arrow color -->
<color name="sfps_chevron_fill">@color/material_dynamic_secondary20</color>
<!-- Progress colors -->
<color name="progress_color">@*android:color/system_accent1_400</color>
</resources>

View File

@@ -5,7 +5,7 @@
-->
<resources>
<!-- Progress colors -->
<color name="progress_color">@*android:color/system_accent1_400</color>
<color name="progress_color">@*android:color/system_accent1_100</color>
<color name="progress_background_color">#33FFFFFF</color>
<color name="action_chip_background_color">#33000000</color>

View File

@@ -767,12 +767,19 @@ public class OnGoingActionProgressController implements NotificationListener.Not
int oldAccentColor = mAccentColor;
updateAccentColor();
if (oldAccentColor != mAccentColor) {
Log.d(TAG, "Accent color changed from configuration: " +
Integer.toHexString(oldAccentColor) + " -> " + Integer.toHexString(mAccentColor));
applySystemTheming();
mNeedsFullUiUpdate = true;
requestUiUpdate();
Log.d(TAG, "Configuration changed - applying theming: " +
Integer.toHexString(oldAccentColor) + " -> " + Integer.toHexString(mAccentColor));
reloadBackgrounds();
applySystemTheming();
mNeedsFullUiUpdate = true;
requestUiUpdate();
}
private void reloadBackgrounds() {
if (mProgressRootView != null) {
mProgressRootView.setBackground(null);
mProgressRootView.setBackgroundResource(R.drawable.action_chip_container_background);
}
}