diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/AccountListViewModel.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/AccountListViewModel.kt index f1818855..54638928 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/AccountListViewModel.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/AccountListViewModel.kt @@ -255,6 +255,7 @@ fun accountListScreenState( text = it.host, error = error, hidden = profile?.hidden == true, + premium = profile?.premium == true, syncing = syncing, selecting = selectionMode, actions = listOf(), diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/component/AccountListItem.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/component/AccountListItem.kt index 7cd4aaf5..dba26b2b 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/component/AccountListItem.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/component/AccountListItem.kt @@ -39,6 +39,7 @@ import com.artemchep.keyguard.ui.ExpandedIfNotEmptyForRow import com.artemchep.keyguard.ui.FlatItemLayout import com.artemchep.keyguard.ui.FlatItemTextContent import com.artemchep.keyguard.ui.icons.ChevronIcon +import com.artemchep.keyguard.ui.icons.KeyguardPremium import com.artemchep.keyguard.ui.icons.SyncIcon import com.artemchep.keyguard.ui.theme.selectedContainer @@ -92,6 +93,11 @@ fun AccountListItemText( imageVector = Icons.Outlined.VisibilityOff, ) } + if (item.premium) { + AvatarBadgeIcon( + imageVector = Icons.Outlined.KeyguardPremium, + ) + } }, ) }, diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/model/AccountItem.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/model/AccountItem.kt index 452d2847..ba3e7a8a 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/model/AccountItem.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/accounts/model/AccountItem.kt @@ -33,6 +33,7 @@ sealed interface AccountItem { val text: String?, val error: Boolean = false, val hidden: Boolean, + val premium: Boolean, val syncing: Boolean = false, val selecting: Boolean = false, val actionNeeded: Boolean,