Start the Qt Quick rewrite of the launcher in qt/
A QML UI with feature parity as the goal: home grid that fills the screen with dense packing and pinned cells, drag to reorder or into an empty cell, widget resize handles snapping to the grid, the app drawer with search and long-press menu, sheets, and the widget picker. HomeActivity (a QtActivity) keeps the Android parts and hosts native widget views over the QML slots, as the WebView shell did. A desktop backend serves the demo data, so qt/tests/e2e.cpp drives the UI end to end offscreen; CI runs it and builds an APK that installs next to the current launcher as ultra Home (Qt). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
33 files changed
+3680
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import QtQuick
|
||||
|
||||
// A rounded text button: "ghost" (clear until pressed) or "primary" (filled).
|
||||
Rectangle {
|
||||
id: root
|
||||
property alias text: label.text
|
||||
property bool primary: false
|
||||
property real fontSize: 14
|
||||
signal clicked()
|
||||
implicitWidth: label.implicitWidth + 28
|
||||
implicitHeight: 36
|
||||
radius: height / 2
|
||||
color: primary ? (area.pressed ? "#d4d4d8" : "white")
|
||||
: (area.pressed ? Qt.rgba(1, 1, 1, .18) : "transparent")
|
||||
Text {
|
||||
id: label
|
||||
anchors.centerIn: parent
|
||||
color: root.primary ? "#111" : "white"
|
||||
font.pixelSize: root.fontSize
|
||||
font.weight: Font.Medium
|
||||
}
|
||||
MouseArea {
|
||||
id: area
|
||||
anchors.fill: parent
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user