mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 15:24:00 -04:00
28 lines
851 B
QML
28 lines
851 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
import qs.Modules.DDash
|
|
|
|
Card {
|
|
id: root
|
|
|
|
readonly property bool narrow: width < DashMetrics.gridRowUnit * 2
|
|
readonly property bool tall: height >= DashMetrics.gridRowUnit * 2
|
|
|
|
entryId: "user"
|
|
|
|
UserIdentity {
|
|
anchors.fill: parent
|
|
live: root.Window.window?.visible ?? false
|
|
options: root.options
|
|
narrow: root.narrow
|
|
tall: root.tall
|
|
avatarSize: root.tall ? DashMetrics.avatarSizeHero : DashMetrics.avatarSize
|
|
contentColor: root.contentColor
|
|
mutedColor: root.mutedColor
|
|
badgeColor: root.tinted ? root.contentColor : Theme.primaryContainer
|
|
badgeContentColor: root.tinted ? root.containerColor : Theme.onPrimaryContainer
|
|
ringColor: root.tinted ? root.containerColor : Theme.avatarRingColor
|
|
}
|
|
}
|