impr: Change room elements style
Make room elements smaller and change background color
This commit is contained in:
parent
cab56d6329
commit
7ba5876a71
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Created by sweetbread
|
||||
* Copyright (c) 2025. All rights reserved.
|
||||
* Last modified 22.02.2025, 20:24
|
||||
* Last modified 03.03.2025, 15:53
|
||||
*/
|
||||
|
||||
package ru.risdeveau.pixeldragon.ui.activity
|
||||
@ -137,16 +137,16 @@ fun RoomItem(modifier: Modifier = Modifier, rid: String) {
|
||||
Row(
|
||||
modifier
|
||||
.padding(8.dp)
|
||||
.height(80.dp)
|
||||
.height((52+8*2).dp)
|
||||
.fillMaxWidth()
|
||||
.background(MaterialTheme.colorScheme.primaryContainer, RoundedCornerShape(16.dp))
|
||||
.background(MaterialTheme.colorScheme.background, RoundedCornerShape(16.dp))
|
||||
.padding(8.dp)
|
||||
) {
|
||||
SubcomposeAsyncImage(
|
||||
modifier = Modifier
|
||||
.padding(end = 4.dp)
|
||||
.height(64.dp)
|
||||
.width(64.dp)
|
||||
.height(52.dp)
|
||||
.width(52.dp)
|
||||
.let {
|
||||
if (room!!.type == "m.space")
|
||||
it.clip(RoundedCornerShape(12.dp))
|
||||
@ -183,7 +183,7 @@ fun RoomItem(modifier: Modifier = Modifier, rid: String) {
|
||||
.padding(8.dp)
|
||||
.height(80.dp)
|
||||
.fillMaxWidth()
|
||||
.background(MaterialTheme.colorScheme.primaryContainer, RoundedCornerShape(16.dp))
|
||||
.background(MaterialTheme.colorScheme.background, RoundedCornerShape(16.dp))
|
||||
.padding(8.dp)
|
||||
) {
|
||||
LinearProgressIndicator(Modifier.fillMaxWidth())
|
||||
|
Loading…
x
Reference in New Issue
Block a user