remove hoverpanel title, move actions into applets, add qmllint baseline regen script

This commit is contained in:
Damocles 2026-04-27 15:04:24 +02:00
parent c24e18d5da
commit adb6c21135
26 changed files with 192 additions and 202 deletions

View file

@ -14,12 +14,9 @@ PanelWindow {
property bool showPanel: false
property Item anchorItem: null
property real anchorX: -1
signal dismissed
required property color accentColor
property string panelTitle: ""
property Component titleActionsComponent: null
property string panelNamespace: "nova-panel"
property real contentWidth: 220
@ -50,8 +47,6 @@ PanelWindow {
if (root.anchorItem) {
const pt = root.anchorItem.mapToGlobal(root.anchorItem.width / 2, 0);
cx = pt.x - (scr?.x ?? 0);
} else if (root.anchorX >= 0) {
cx = root.anchorX;
} else {
cx = sw / 2;
}
@ -206,42 +201,6 @@ PanelWindow {
id: _panelColumn
width: root.contentWidth
// Header row: title + action buttons
Item {
id: _headerItem
visible: root.panelTitle !== "" || root.titleActionsComponent !== null
width: parent.width
height: 24
Text {
visible: root.panelTitle !== ""
anchors.left: parent.left
anchors.leftMargin: 12
anchors.verticalCenter: parent.verticalCenter
text: root.panelTitle
color: root.accentColor
font.pixelSize: S.Theme.fontSize - 1
font.bold: true
font.family: S.Theme.fontFamily
}
Loader {
id: _titleActionsLoader
anchors.right: parent.right
anchors.rightMargin: 4
anchors.verticalCenter: parent.verticalCenter
sourceComponent: root.titleActionsComponent
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: 1
color: S.Theme.base03
}
}
Flickable {
id: _flickable
width: parent.width
@ -250,7 +209,7 @@ PanelWindow {
clip: contentHeight > height
boundsBehavior: Flickable.StopAtBounds
readonly property real _maxContentHeight: (root.screen?.height ?? 1080) * 0.6 - (_headerItem.visible ? _headerItem.height : 0)
readonly property real _maxContentHeight: (root.screen?.height ?? 1080) * 0.6
Column {
id: panelContent