dev: Highlight m.spaces

This commit is contained in:
2025-11-03 23:52:43 +03:00
parent 00f273c866
commit a0bfba23cf
@@ -93,7 +93,12 @@ fun RoomItem(modifier: Modifier = Modifier, rid: String, navController: NavContr
.padding(8.dp) .padding(8.dp)
.height((52 + 8 * 2).dp) .height((52 + 8 * 2).dp)
.fillMaxWidth() .fillMaxWidth()
.background(MaterialTheme.colorScheme.background) .background(color =
if (room!!.type == "m.space")
MaterialTheme.colorScheme.tertiary
else
MaterialTheme.colorScheme.background
)
.clip(RoundedCornerShape(12.dp)) .clip(RoundedCornerShape(12.dp))
.clickable { .clickable {
if (room!!.type == "m.space") if (room!!.type == "m.space")
@@ -117,6 +122,7 @@ fun RoomItem(modifier: Modifier = Modifier, rid: String, navController: NavContr
} }
) )
Column { Column {
Text(room!!.type)
Text( Text(
room!!.name ?: "Unnamed", room!!.name ?: "Unnamed",
maxLines = 1, maxLines = 1,