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

Commit 965ab67d authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "[Dual Shade] Use hightlight colors for status icons" into main

parents 60b62275 d6887fee
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -344,14 +344,6 @@ fun ContentScope.OverlayShadeHeader(
    showClock: Boolean,
    modifier: Modifier = Modifier,
) {
    val localContext = LocalContext.current
    val themedContext =
        ContextThemeWrapper(localContext, R.style.Theme_SystemUI_QuickSettings_Header)
    val primaryColor =
        Utils.getColorAttrDefaultColor(themedContext, android.R.attr.textColorPrimary)
    val inverseColor =
        Utils.getColorAttrDefaultColor(themedContext, android.R.attr.textColorPrimaryInverse)

    val horizontalPadding =
        max(LocalScreenCornerRadius.current / 2f, Shade.Dimensions.HorizontalPadding)

@@ -418,8 +410,8 @@ fun ContentScope.OverlayShadeHeader(
                        viewModel = viewModel,
                        useExpandedFormat = false,
                        modifier = Modifier.padding(end = paddingEnd).weight(1f, fill = false),
                        foregroundColor = if (isHighlighted) primaryColor else inverseColor,
                        backgroundColor = if (isHighlighted) inverseColor else primaryColor,
                        foregroundColor = quickSettingsHighlight.foregroundColor.toArgb(),
                        backgroundColor = quickSettingsHighlight.backgroundColor.toArgb(),
                    )
                    BatteryInfo(
                        viewModel = viewModel,