parent
5c59e4490a
commit
1f3656c2f6
1 changed files with 44 additions and 49 deletions
|
|
@ -358,32 +358,29 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
width: parent.width * heroCard.animatedUsage
|
implicitWidth: parent.width * heroCard.animatedUsage
|
||||||
color: Qt.alpha(heroCard.accentColor, 0.15)
|
color: Qt.alpha(heroCard.accentColor, 0.15)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.leftMargin: Appearance.padding.large
|
|
||||||
anchors.rightMargin: Appearance.padding.large
|
|
||||||
anchors.topMargin: Appearance.padding.normal
|
|
||||||
anchors.bottomMargin: Appearance.padding.normal
|
|
||||||
spacing: Appearance.spacing.small
|
|
||||||
|
|
||||||
CardHeader {
|
CardHeader {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.leftMargin: Appearance.padding.large
|
||||||
|
anchors.topMargin: Math.round(Appearance.padding.large * 1.2)
|
||||||
|
|
||||||
|
width: parent.width - anchors.leftMargin - usageColumn.anchors.rightMargin - usageLabel.width - Appearance.spacing.normal
|
||||||
icon: heroCard.icon
|
icon: heroCard.icon
|
||||||
title: heroCard.title
|
title: heroCard.title
|
||||||
accentColor: heroCard.accentColor
|
accentColor: heroCard.accentColor
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
spacing: Appearance.spacing.normal
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
Layout.alignment: Qt.AlignBottom
|
anchors.left: parent.left
|
||||||
Layout.fillWidth: true
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.margins: Math.round(Appearance.padding.large * 1.2)
|
||||||
|
anchors.bottomMargin: Math.round(Appearance.padding.large * 1.3)
|
||||||
|
|
||||||
spacing: Appearance.spacing.small
|
spacing: Appearance.spacing.small
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
|
@ -404,21 +401,17 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressBar {
|
ProgressBar {
|
||||||
width: parent.width * 0.5
|
implicitWidth: parent.width * 0.5
|
||||||
height: 6
|
implicitHeight: 6
|
||||||
value: heroCard.tempProgress
|
value: heroCard.tempProgress
|
||||||
fgColor: heroCard.accentColor
|
fgColor: heroCard.accentColor
|
||||||
bgColor: Qt.alpha(heroCard.accentColor, 0.2)
|
bgColor: Qt.alpha(heroCard.accentColor, 0.2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
id: usageColumn
|
||||||
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.margins: Appearance.padding.large
|
anchors.margins: Appearance.padding.large
|
||||||
|
|
@ -426,6 +419,8 @@ Item {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
id: usageLabel
|
||||||
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: heroCard.mainLabel
|
text: heroCard.mainLabel
|
||||||
font.pointSize: Appearance.font.size.normal
|
font.pointSize: Appearance.font.size.normal
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue