Skip to content

Commit b211941

Browse files
authored
Merge pull request #3611 from frebib/frebib/black-on-black
Fix black-on-black status bars with hidden media
2 parents 30f4974 + 0b67dfd commit b211941

File tree

1 file changed

+3
-2
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/protection

1 file changed

+3
-2
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/protection/ProtectedView.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.Box
1414
import androidx.compose.foundation.layout.fillMaxSize
1515
import androidx.compose.foundation.layout.padding
1616
import androidx.compose.foundation.layout.size
17+
import androidx.compose.foundation.shape.CircleShape
1718
import androidx.compose.foundation.shape.RoundedCornerShape
1819
import androidx.compose.runtime.Composable
1920
import androidx.compose.ui.Alignment
@@ -46,7 +47,7 @@ fun ProtectedView(
4647
.background(Color(0x99000000)),
4748
contentAlignment = Alignment.Center,
4849
) {
49-
ElementTheme(darkTheme = false) {
50+
ElementTheme(darkTheme = false, applySystemBarsUpdate = false) {
5051
// Not using a button to be able to have correct size
5152
Text(
5253
modifier = Modifier
@@ -59,7 +60,7 @@ fun ProtectedView(
5960
.border(
6061
width = 1.dp,
6162
color = ElementTheme.colors.borderInteractiveSecondary,
62-
shape = RoundedCornerShape(percent = 50),
63+
shape = CircleShape,
6364
)
6465
.padding(
6566
horizontal = 16.dp,

0 commit comments

Comments
 (0)