dev: Highlight m.spaces
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user