Skip to content

Commit

Permalink
Merge pull request #3611 from frebib/frebib/black-on-black
Browse files Browse the repository at this point in the history
Fix black-on-black status bars with hidden media
  • Loading branch information
bmarty authored Oct 7, 2024
2 parents 30f4974 + 0b67dfd commit b211941
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -46,7 +47,7 @@ fun ProtectedView(
.background(Color(0x99000000)),
contentAlignment = Alignment.Center,
) {
ElementTheme(darkTheme = false) {
ElementTheme(darkTheme = false, applySystemBarsUpdate = false) {
// Not using a button to be able to have correct size
Text(
modifier = Modifier
Expand All @@ -59,7 +60,7 @@ fun ProtectedView(
.border(
width = 1.dp,
color = ElementTheme.colors.borderInteractiveSecondary,
shape = RoundedCornerShape(percent = 50),
shape = CircleShape,
)
.padding(
horizontal = 16.dp,
Expand Down

0 comments on commit b211941

Please sign in to comment.