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

Commit 5176a479 authored by Darrell Shi's avatar Darrell Shi
Browse files

Add a background to UMO in Glanceable Hub

This change adds a background to the UMO in the Glanceable Hub ensuring
the settings icon that appears when swiping horizontally has enough
color contrast.

Fix: 378797118
Test: tested manually; see videos in bug
Flag: EXEMPT bug fix
Change-Id: I2e5f178fd466b12a7fb9e237f45cfbd34d82e777
parent 98d6afef
Loading
Loading
Loading
Loading
+24 −17
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
@@ -1699,7 +1700,13 @@ private fun Umo(
private fun UmoLegacy(viewModel: BaseCommunalViewModel, modifier: Modifier = Modifier) {
    AndroidView(
        modifier =
            modifier.pointerInput(Unit) {
            modifier
                .clip(
                    shape =
                        RoundedCornerShape(dimensionResource(system_app_widget_background_radius))
                )
                .background(MaterialTheme.colorScheme.primary)
                .pointerInput(Unit) {
                    detectHorizontalDragGestures { change, _ ->
                        change.consume()
                        val upTime = SystemClock.uptimeMillis()