feat: Show a little Premium badge next to account that has Bitwarden premium
This commit is contained in:
parent
462c13643a
commit
e9e1b5333b
|
@ -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(),
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue