summaryrefslogtreecommitdiffstats
path: root/basicsuite/About Boot to Qt/Box.qml
blob: cfbb995405cca58ea4abe375b2288b916db436ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
    }

}