You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
546 B
28 lines
546 B
// BigButton.qml:
|
|
|
|
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
|
|
Rectangle {
|
|
id: customButton
|
|
width: parent.width
|
|
height: Theme.itemSizeExtraLarge
|
|
color: Theme.secondaryHighlightColor
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: customButton.clicked()
|
|
}
|
|
|
|
signal clicked()
|
|
|
|
property alias buttonText: buttonText
|
|
|
|
Text {
|
|
id: buttonText
|
|
text: "Button Text"
|
|
font.pixelSize: Theme.fontSizeExtraLarge
|
|
color: Theme.primaryColor
|
|
anchors.centerIn: parent
|
|
}
|
|
}
|