1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

Add support for plugin registry + install + management

This commit is contained in:
bbedward
2025-10-06 15:26:44 -04:00
parent 89793d2d62
commit 1e2489ca76
9 changed files with 968 additions and 34 deletions

View File

@@ -8,7 +8,7 @@ DankPopout {
property var triggerScreen: null
property Component pluginContent: null
property real contentWidth: 400
property real contentHeight: 400
property real contentHeight: 0
function setTriggerPosition(x, y, width, section, screen) {
triggerX = x
@@ -63,13 +63,12 @@ DankPopout {
Column {
id: popoutColumn
width: parent.width - Theme.spacingS * 2
height: parent.height - Theme.spacingS * 2
x: Theme.spacingS
y: Theme.spacingS
spacing: Theme.spacingS
Loader {
id: popoutContent
id: popoutContentLoader
width: parent.width
sourceComponent: root.pluginContent
@@ -79,6 +78,9 @@ DankPopout {
root.close()
}
}
if (root.contentHeight === 0 && item) {
root.contentHeight = item.implicitHeight + Theme.spacingS * 2
}
}
}
}