The binary now links Core, Gui, Quick and QuickShapes, nothing else. Qt Widgets was there for one reason, QSystemTrayIcon, so the tray icon is gone and QApplication is back to QGuiApplication. The cat itself is the whole interface: right-click or long-press opens the settings window, which carries the tricks and a quit button. Ctrl+C in the terminal works as well. The settings window is rebuilt from Qt Quick primitives. AppButton, AppSlider, AppToggle and SettingsGroup replace the Controls types, keyboard handling and accessible roles included, and a Flickable with plain positioners replaces QtQuick.Layouts. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
39 lines
843 B
QML
39 lines
843 B
QML
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
|
|
// A titled panel. Children go into the column below the title.
|
|
Rectangle {
|
|
id: group
|
|
|
|
property alias title: heading.text
|
|
property real spacing: 10
|
|
default property alias content: column.data
|
|
|
|
implicitHeight: heading.height + 8 + column.implicitHeight + 24
|
|
radius: 8
|
|
color: "#ffffff"
|
|
border.width: 1
|
|
border.color: "#e7e1d8"
|
|
antialiasing: true
|
|
|
|
Text {
|
|
id: heading
|
|
x: 14
|
|
y: 12
|
|
color: "#7a7484"
|
|
font.pixelSize: 11
|
|
font.bold: true
|
|
}
|
|
|
|
Column {
|
|
id: column
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.leftMargin: 14
|
|
anchors.rightMargin: 14
|
|
anchors.top: heading.bottom
|
|
anchors.topMargin: 8
|
|
spacing: group.spacing
|
|
}
|
|
}
|