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,
|
text = it.host,
|
||||||
error = error,
|
error = error,
|
||||||
hidden = profile?.hidden == true,
|
hidden = profile?.hidden == true,
|
||||||
|
premium = profile?.premium == true,
|
||||||
syncing = syncing,
|
syncing = syncing,
|
||||||
selecting = selectionMode,
|
selecting = selectionMode,
|
||||||
actions = listOf(),
|
actions = listOf(),
|
||||||
|
@ -39,6 +39,7 @@ import com.artemchep.keyguard.ui.ExpandedIfNotEmptyForRow
|
|||||||
import com.artemchep.keyguard.ui.FlatItemLayout
|
import com.artemchep.keyguard.ui.FlatItemLayout
|
||||||
import com.artemchep.keyguard.ui.FlatItemTextContent
|
import com.artemchep.keyguard.ui.FlatItemTextContent
|
||||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
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.icons.SyncIcon
|
||||||
import com.artemchep.keyguard.ui.theme.selectedContainer
|
import com.artemchep.keyguard.ui.theme.selectedContainer
|
||||||
|
|
||||||
@ -92,6 +93,11 @@ fun AccountListItemText(
|
|||||||
imageVector = Icons.Outlined.VisibilityOff,
|
imageVector = Icons.Outlined.VisibilityOff,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
if (item.premium) {
|
||||||
|
AvatarBadgeIcon(
|
||||||
|
imageVector = Icons.Outlined.KeyguardPremium,
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
@ -33,6 +33,7 @@ sealed interface AccountItem {
|
|||||||
val text: String?,
|
val text: String?,
|
||||||
val error: Boolean = false,
|
val error: Boolean = false,
|
||||||
val hidden: Boolean,
|
val hidden: Boolean,
|
||||||
|
val premium: Boolean,
|
||||||
val syncing: Boolean = false,
|
val syncing: Boolean = false,
|
||||||
val selecting: Boolean = false,
|
val selecting: Boolean = false,
|
||||||
val actionNeeded: Boolean,
|
val actionNeeded: Boolean,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user