1bf52662ae
This simplifies the launcher's rendering since the widget-based code is gone, various things get hooked up as a result. Styling fixes everywhere as well. Menubar on Linux/Windows needs to be re-added.
24 lines
530 B
QML
24 lines
530 B
QML
import QtQuick 2.4
|
|
import "."
|
|
|
|
Text {
|
|
id: root
|
|
signal clicked();
|
|
|
|
property bool clickable: true
|
|
property color baseTextColor: Style.baseTextColor
|
|
color: mouse.containsMouse ? Style.themeColor : baseTextColor
|
|
font.pixelSize: Style.baseFontPixelSize
|
|
|
|
MouseArea {
|
|
id: mouse
|
|
|
|
enabled: root.clickable
|
|
hoverEnabled: root.clickable
|
|
anchors.fill: parent
|
|
|
|
onClicked: parent.clicked();
|
|
|
|
cursorShape: root.clickable ? Qt.PointingHandCursor : Qt.ArrowCursor
|
|
}
|
|
}
|