Rewrite the launcher in MoonBit (old code moves to legacy/) (#1)
This commit was merged in pull request #1.
This commit is contained in:
1 parent
7d2bf5996f
commit
2fa7bd745b
150 files changed
+8319
-462
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import QtQuick
|
||||
|
||||
// A row in a sheet's menu.
|
||||
Rectangle {
|
||||
id: root
|
||||
property alias text: label.text
|
||||
signal clicked()
|
||||
width: parent ? parent.width : 0
|
||||
height: 48
|
||||
radius: 8
|
||||
color: area.pressed ? "#2e2e36" : "transparent"
|
||||
Text {
|
||||
id: label
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 8
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: "#fafafa"
|
||||
font.pixelSize: 16
|
||||
}
|
||||
MouseArea {
|
||||
id: area
|
||||
anchors.fill: parent
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user