Skip to content

Commit 519a4c9

Browse files
committed
remove alpha from NameImage
1 parent 94d5d2a commit 519a4c9

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

  • common/src/androidMain/kotlin/com/dimension/maskbook/common/ui/widget
  • wallet/src/androidMain/kotlin/com/dimension/maskbook/wallet/ui/scenes/wallets/management

common/src/androidMain/kotlin/com/dimension/maskbook/common/ui/widget/NameImage.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ fun NameImage(
4141
modifier: Modifier = Modifier,
4242
color: Color = MaterialTheme.colors.primary,
4343
style: TextStyle? = null,
44-
alpha: Float = LocalContentAlpha.current,
4544
) {
4645
BoxWithConstraints(
4746
modifier = modifier
48-
.alpha(alpha)
4947
.background(color, shape = CircleShape),
5048
contentAlignment = Alignment.Center,
5149
) {

wallet/src/androidMain/kotlin/com/dimension/maskbook/wallet/ui/scenes/wallets/management/WalletSwitchModal.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ fun WalletSwitchSceneModal(
190190
NameImage(
191191
name = wallet.name,
192192
modifier = Modifier.size(32.dp),
193-
alpha = 1f,
194193
color = wallet.name.walletColor
195194
)
196195
},

0 commit comments

Comments
 (0)