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

Commit 23be36c4 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Use correct colors in light theme

Flag: com.android.systemui.enable_underlay
Test: atest NavBarPillScreenshotTest
Bug: 403422950
Change-Id: Iaae9d7604a312893979d53d1cf233326c3883011
parent 11538b19
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.layout.onGloballyPositioned
@@ -73,8 +72,8 @@ fun NavBarPill(
    onCloseClick: () -> Unit = {},
) {
    val maxPillWidth = 247.dp
    val outlineColor = Color.White
    val backgroundColor = Color.Black
    val outlineColor = MaterialTheme.colorScheme.onBackground
    val backgroundColor = MaterialTheme.colorScheme.background

    val density = LocalDensity.current
    val collapsedWidthPx = with(density) { navBarWidth.toPx() }