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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user