1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-09 13:41:18 +02:00
Files
tomahawk/data/qml/tomahawkimports/Button.qml
Michael Zanetti 883bcc2670 - make the station stuff adapt to high DPIs
- more work on the config dialog
2012-11-24 15:26:18 +01:00

30 lines
592 B
QML

import QtQuick 1.1
Rectangle {
id: root
color: buttonMouseArea.containsMouse ? "blue" : "gray"
border.width: 2
border.color: "white"
radius: height/2
height: buttonText.height * 1.2
width: buttonText.width * 1.5
property alias text: buttonText.text
property color textColor: "white"
signal clicked()
Text {
id: buttonText
anchors.centerIn: parent
color: root.textColor
}
MouseArea {
id: buttonMouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: root.clicked();
}
}