mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
@@ -25,8 +25,8 @@ BasePill {
|
|||||||
|
|
||||||
content: Component {
|
content: Component {
|
||||||
Item {
|
Item {
|
||||||
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : cpuContentRoot.implicitWidth
|
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : cpuContent.implicitWidth
|
||||||
implicitHeight: root.isVerticalOrientation ? cpuColumn.implicitHeight : (root.widgetThickness - root.horizontalPadding * 2)
|
implicitHeight: root.isVerticalOrientation ? cpuColumn.implicitHeight : cpuContent.implicitHeight
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: cpuColumn
|
id: cpuColumn
|
||||||
@@ -65,15 +65,9 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: cpuContentRoot
|
|
||||||
visible: !root.isVerticalOrientation
|
|
||||||
|
|
||||||
implicitWidth: cpuRow.implicitWidth
|
|
||||||
implicitHeight: cpuRow.implicitHeight
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: cpuRow
|
id: cpuContent
|
||||||
|
visible: !root.isVerticalOrientation
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Theme.spacingXS
|
spacing: Theme.spacingXS
|
||||||
|
|
||||||
@@ -142,7 +136,6 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ BasePill {
|
|||||||
|
|
||||||
content: Component {
|
content: Component {
|
||||||
Item {
|
Item {
|
||||||
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : cpuTempContentRoot.implicitWidth
|
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : cpuTempRow.implicitWidth
|
||||||
implicitHeight: root.isVerticalOrientation ? cpuTempColumn.implicitHeight : (root.widgetThickness - root.horizontalPadding * 2)
|
implicitHeight: root.isVerticalOrientation ? cpuTempColumn.implicitHeight : cpuTempRow.implicitHeight
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: cpuTempColumn
|
id: cpuTempColumn
|
||||||
@@ -65,15 +65,9 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: cpuTempContentRoot
|
|
||||||
visible: !root.isVerticalOrientation
|
|
||||||
|
|
||||||
implicitWidth: cpuTempRow.implicitWidth
|
|
||||||
implicitHeight: cpuTempRow.implicitHeight
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: cpuTempRow
|
id: cpuTempRow
|
||||||
|
visible: !root.isVerticalOrientation
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Theme.spacingXS
|
spacing: Theme.spacingXS
|
||||||
|
|
||||||
@@ -142,7 +136,6 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ BasePill {
|
|||||||
|
|
||||||
content: Component {
|
content: Component {
|
||||||
Item {
|
Item {
|
||||||
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : gpuTempContentRoot.implicitWidth
|
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : gpuTempRow.implicitWidth
|
||||||
implicitHeight: root.isVerticalOrientation ? gpuTempColumn.implicitHeight : (root.widgetThickness - root.horizontalPadding * 2)
|
implicitHeight: root.isVerticalOrientation ? gpuTempColumn.implicitHeight : gpuTempRow.implicitHeight
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: gpuTempColumn
|
id: gpuTempColumn
|
||||||
@@ -133,15 +133,9 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: gpuTempContentRoot
|
|
||||||
visible: !root.isVerticalOrientation
|
|
||||||
|
|
||||||
implicitWidth: gpuTempRow.implicitWidth
|
|
||||||
implicitHeight: gpuTempRow.implicitHeight
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: gpuTempRow
|
id: gpuTempRow
|
||||||
|
visible: !root.isVerticalOrientation
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Theme.spacingXS
|
spacing: Theme.spacingXS
|
||||||
|
|
||||||
@@ -210,7 +204,6 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ BasePill {
|
|||||||
|
|
||||||
content: Component {
|
content: Component {
|
||||||
Item {
|
Item {
|
||||||
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : ramContentRoot.implicitWidth
|
implicitWidth: root.isVerticalOrientation ? (root.widgetThickness - root.horizontalPadding * 2) : ramContent.implicitWidth
|
||||||
implicitHeight: root.isVerticalOrientation ? ramColumn.implicitHeight : (root.widgetThickness - root.horizontalPadding * 2)
|
implicitHeight: root.isVerticalOrientation ? ramColumn.implicitHeight : ramContent.implicitHeight
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: ramColumn
|
id: ramColumn
|
||||||
@@ -75,15 +75,9 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: ramContentRoot
|
|
||||||
visible: !root.isVerticalOrientation
|
|
||||||
|
|
||||||
implicitWidth: ramRow.implicitWidth
|
|
||||||
implicitHeight: ramRow.implicitHeight
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: ramRow
|
id: ramContent
|
||||||
|
visible: !root.isVerticalOrientation
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Theme.spacingXS
|
spacing: Theme.spacingXS
|
||||||
|
|
||||||
@@ -165,7 +159,6 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user