diff options
Diffstat (limited to 'basicsuite/About Boot to Qt/Box.qml')
-rw-r--r-- | basicsuite/About Boot to Qt/Box.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/basicsuite/About Boot to Qt/Box.qml b/basicsuite/About Boot to Qt/Box.qml new file mode 100644 index 0000000..cfbb995 --- /dev/null +++ b/basicsuite/About Boot to Qt/Box.qml @@ -0,0 +1,30 @@ +import QtQuick 2.0 + +Rectangle { + id: root + + width: parent.width + height: label.font.pixelSize * 3 + + radius: 4 + + antialiasing: true + + property alias text: label.text; + + property color accentColor: "palegreen" + + gradient: Gradient { + GradientStop { position: 0; color: root.accentColor; } + GradientStop { position: 1; color: "black"; } + } + + Text { + id: label + font.pixelSize: engine.smallFontSize() + font.bold: true; + color: "white" + anchors.centerIn: parent + } + +} |