parent
d302bf4782
commit
a7d430e309
|
@ -1,5 +1,6 @@
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtQuick.Shapes 1.15
|
import QtQuick.Shapes 1.15
|
||||||
|
import QtQuick.Layouts 1.15
|
||||||
|
|
||||||
import StatusQ.Core 0.1
|
import StatusQ.Core 0.1
|
||||||
import StatusQ.Core.Theme 0.1
|
import StatusQ.Core.Theme 0.1
|
||||||
|
@ -29,6 +30,7 @@ import utils 1.0
|
||||||
Shape {
|
Shape {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
property string icon
|
||||||
property string text
|
property string text
|
||||||
property color textColor: Theme.palette.baseColor1
|
property color textColor: Theme.palette.baseColor1
|
||||||
property alias font: description.font
|
property alias font: description.font
|
||||||
|
@ -46,13 +48,27 @@ Shape {
|
||||||
implicitWidth: 448
|
implicitWidth: 448
|
||||||
implicitHeight: 44
|
implicitHeight: 44
|
||||||
|
|
||||||
StatusBaseText {
|
RowLayout {
|
||||||
id: description
|
spacing: 4
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: root.textColor
|
|
||||||
text: root.text
|
StatusIcon {
|
||||||
font.pixelSize: 13
|
id: icon
|
||||||
visible: (!!text)
|
|
||||||
|
visible: root.icon
|
||||||
|
color: root.textColor
|
||||||
|
icon: root.icon
|
||||||
|
width: 16
|
||||||
|
height: width
|
||||||
|
}
|
||||||
|
|
||||||
|
StatusBaseText {
|
||||||
|
id: description
|
||||||
|
color: root.textColor
|
||||||
|
text: root.text
|
||||||
|
font.pixelSize: 13
|
||||||
|
visible: !!text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ShapePath {
|
ShapePath {
|
||||||
|
|
Loading…
Reference in New Issue