Files
DankMaterialShell/quickshell/Modules/DankDash/Overview/UserInfoCard.qml
T
purian23 64b4d0d235 feat(control center): configurable user card & power control action tiles
- Quick actions are reorderable with button color roles and optional power accents
- Updated dank-qml-common
2026-09-27 20:55:54 -04:00

28 lines
854 B
QML

import QtQuick
import qs.Common
import qs.Widgets
import qs.Modules.DankDash
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
}
}