impr: Change room elements style

Make room elements smaller and change background color
This commit is contained in:
Sweetbread 2025-03-03 18:55:38 +03:00
parent cab56d6329
commit 7ba5876a71

View File

@ -1,7 +1,7 @@
/* /*
* Created by sweetbread * Created by sweetbread
* Copyright (c) 2025. All rights reserved. * 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 package ru.risdeveau.pixeldragon.ui.activity
@ -137,16 +137,16 @@ fun RoomItem(modifier: Modifier = Modifier, rid: String) {
Row( Row(
modifier modifier
.padding(8.dp) .padding(8.dp)
.height(80.dp) .height((52+8*2).dp)
.fillMaxWidth() .fillMaxWidth()
.background(MaterialTheme.colorScheme.primaryContainer, RoundedCornerShape(16.dp)) .background(MaterialTheme.colorScheme.background, RoundedCornerShape(16.dp))
.padding(8.dp) .padding(8.dp)
) { ) {
SubcomposeAsyncImage( SubcomposeAsyncImage(
modifier = Modifier modifier = Modifier
.padding(end = 4.dp) .padding(end = 4.dp)
.height(64.dp) .height(52.dp)
.width(64.dp) .width(52.dp)
.let { .let {
if (room!!.type == "m.space") if (room!!.type == "m.space")
it.clip(RoundedCornerShape(12.dp)) it.clip(RoundedCornerShape(12.dp))
@ -183,7 +183,7 @@ fun RoomItem(modifier: Modifier = Modifier, rid: String) {
.padding(8.dp) .padding(8.dp)
.height(80.dp) .height(80.dp)
.fillMaxWidth() .fillMaxWidth()
.background(MaterialTheme.colorScheme.primaryContainer, RoundedCornerShape(16.dp)) .background(MaterialTheme.colorScheme.background, RoundedCornerShape(16.dp))
.padding(8.dp) .padding(8.dp)
) { ) {
LinearProgressIndicator(Modifier.fillMaxWidth()) LinearProgressIndicator(Modifier.fillMaxWidth())