diff options
Diffstat (limited to 'basicsuite/about-b2qt/Box.qml')
-rw-r--r-- | basicsuite/about-b2qt/Box.qml | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/basicsuite/about-b2qt/Box.qml b/basicsuite/about-b2qt/Box.qml index d86e62e..6b90107 100644 --- a/basicsuite/about-b2qt/Box.qml +++ b/basicsuite/about-b2qt/Box.qml @@ -41,29 +41,27 @@ import QtQuick 2.0 Rectangle { - id: root + id: box width: parent.width height: label.font.pixelSize * 3 - radius: 4 - antialiasing: true property alias text: label.text; - property color accentColor: "palegreen" + property color borderColor: '#80c342' + property color backgroundColor: "transparent" + property color textColor: '#5caa15' - gradient: Gradient { - GradientStop { position: 0; color: root.accentColor; } - GradientStop { position: 1; color: Qt.darker(Qt.darker(root.accentColor)); } - } + color: backgroundColor + border.color: borderColor + border.width: 2 Text { id: label font.pixelSize: engine.smallFontSize() - font.bold: true; - color: "white" + color: textColor anchors.centerIn: parent horizontalAlignment: Text.AlignHCenter } |