blob: 85640dfb79d5ee3a813570122ea52c1386b189f2 (
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
31
32
33
34
|
import QtQuick 2.0
Rectangle {
id: root
property alias text: buttonText.text
signal clicked()
width: buttonText.width + 20
height: buttonText.height + 6
border.color: "#2b1ae2"
MouseArea {
anchors.fill: parent
onClicked: root.clicked();
}
Text {
id: buttonText
color: "#fbf8f8"
anchors.centerIn: parent
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
font.family: "MS UI Gothic"
font.pixelSize: 15
}
gradient: Gradient {
GradientStop { position: 0.0; color: "#000000" }
GradientStop { position: 1.0; color: "#ffffff" }
}
}
|