Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 3f802c6

Browse files
committed
Fix buttons
1 parent 83e134a commit 3f802c6

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎ui/src/main/kotlin/com/gemwallet/android/ui/components/image/IconWithBadge.kt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package com.gemwallet.android.ui.components.image
22

33
import androidx.compose.foundation.border
44
import androidx.compose.foundation.layout.Box
5+
import androidx.compose.foundation.layout.offset
6+
import androidx.compose.foundation.layout.padding
57
import androidx.compose.foundation.layout.size
68
import androidx.compose.foundation.shape.CircleShape
79
import androidx.compose.material3.MaterialTheme
@@ -48,9 +50,10 @@ fun IconWithBadge(
4850
supportIcon?.let {
4951
AsyncImage(
5052
modifier = Modifier
53+
.offset(2.dp, 2.dp)
5154
.size(supportSize)
5255
.align(Alignment.Companion.BottomEnd)
53-
.border(0.5.dp, MaterialTheme.colorScheme.surface, CircleShape),
56+
.border(1.5.dp, MaterialTheme.colorScheme.surface, CircleShape),
5457
model = supportIcon,
5558
contentDescription = "list_item_support_icon",
5659
)

‎ui/src/main/kotlin/com/gemwallet/android/ui/components/list_head/AmountListHead.kt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ fun AssetHeadActions(
211211
private fun AssetWatchOnly() {
212212
var showInfoSheet by remember { mutableStateOf<InfoSheetEntity?>(null) }
213213
Button(
214-
onClick = {},
215-
enabled = false,
214+
onClick = { showInfoSheet = InfoSheetEntity.WatchWalletInfo },
215+
enabled = true,
216216
colors = ButtonDefaults
217217
.buttonColors(
218-
disabledContentColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.5f),
219-
disabledContainerColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.07f)
218+
contentColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.5f),
219+
containerColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.07f)
220220
)
221221
) {
222222
Row(
@@ -235,7 +235,7 @@ private fun AssetWatchOnly() {
235235
Spacer8()
236236
IconButton(
237237
modifier = Modifier.size(24.dp),
238-
onClick = { showInfoSheet = InfoSheetEntity.WatchWalletInfo }
238+
onClick = { }
239239
) {
240240
Icon(
241241
imageVector = Icons.Default.Info,

0 commit comments

Comments
 (0)