Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 954620d4 authored by Evan Laird's avatar Evan Laird Committed by Android (Google) Code Review
Browse files

Merge "[[Old] Battery] Set the battery colors in ShadeHeaderController" into 24D1-dev

parents f34e83ca 12ce7773
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -303,10 +303,18 @@ constructor(
        // battery settings same as in QS icons
        batteryMeterViewController.ignoreTunerUpdates()

        val fgColor =
            Utils.getColorAttrDefaultColor(header.context, android.R.attr.textColorPrimary)
        val bgColor =
            Utils.getColorAttrDefaultColor(header.context, android.R.attr.textColorPrimaryInverse)

        iconManager = tintedIconManagerFactory.create(iconContainer, StatusBarLocation.QS)
        iconManager.setTint(
            Utils.getColorAttrDefaultColor(header.context, android.R.attr.textColorPrimary),
            Utils.getColorAttrDefaultColor(header.context, android.R.attr.textColorPrimaryInverse),
        iconManager.setTint(fgColor, bgColor)

        batteryIcon.updateColors(
            fgColor /* foreground */,
            bgColor /* background */,
            fgColor /* single tone (current default) */
        )

        carrierIconSlots =