1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

plugins: give popout customizable header actions

This commit is contained in:
bbedward
2026-01-17 22:42:55 -05:00
parent 7241877995
commit 3bed2d9feb

View File

@@ -9,6 +9,7 @@ Column {
property string detailsText: ""
property bool showCloseButton: false
property var closePopout: null
property alias headerActions: headerActionsLoader.sourceComponent
readonly property int headerHeight: popoutHeader.visible ? popoutHeader.height : 0
readonly property int detailsHeight: popoutDetails.visible ? popoutDetails.implicitHeight : 0
@@ -31,13 +32,21 @@ Column {
color: Theme.surfaceText
}
Row {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingXS
Loader {
id: headerActionsLoader
anchors.verticalCenter: parent.verticalCenter
}
Rectangle {
id: closeButton
width: 32
height: 32
radius: 16
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
color: closeArea.containsMouse ? Theme.errorHover : "transparent"
visible: root.showCloseButton
@@ -61,6 +70,7 @@ Column {
}
}
}
}
StyledText {
id: popoutDetails