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

Commit 7f98f0a2 authored by Jiaming Cheng's avatar Jiaming Cheng
Browse files

[BC25 Dual Shade] Fix hover background for QS Edit back button

This change replaces the Modifier.drawBehind with
IconButtonDefaults.iconButtonColors to properly set the
container and content colors.

Bug: 429237574
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Test: UI change only. Existing unit tests still pass.
Change-Id: If53a20c65f10d5827b818c1311bdbed2c6a3ec58
parent 54e6a7fa
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -236,11 +236,14 @@ private fun EditModeTopBar(
        navigationIcon = {
            IconButton(
                onClick = onStopEditing,
                modifier = Modifier.drawBehind { drawCircle(surfaceEffect2) },
                colors =
                    IconButtonDefaults.iconButtonColors(
                        containerColor = surfaceEffect2,
                        contentColor = MaterialTheme.colorScheme.onSurface,
                    ),
            ) {
                Icon(
                    Icons.AutoMirrored.Filled.ArrowBack,
                    tint = MaterialTheme.colorScheme.onSurface,
                    contentDescription =
                        stringResource(id = com.android.internal.R.string.action_bar_up_description),
                )