mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 09:36:46 +00:00
quickshell and hyprland additions
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import qs.config
|
||||
import qs.plugins
|
||||
|
||||
ColumnLayout {
|
||||
id: pluginColumn
|
||||
Layout.fillWidth: true
|
||||
spacing: 8
|
||||
implicitHeight: childrenRect.height
|
||||
|
||||
Repeater {
|
||||
model: PluginLoader.plugins
|
||||
|
||||
delegate: ContentCard {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Loader {
|
||||
Layout.fillWidth: true
|
||||
asynchronous: true
|
||||
source: Qt.resolvedUrl(
|
||||
Directories.shellConfig + "/plugins/" + modelData + "/Settings.qml"
|
||||
)
|
||||
|
||||
onStatusChanged: {
|
||||
if (status === Loader.Ready) {
|
||||
// recompute height when loader finishes loading
|
||||
pluginColumn.implicitHeight = pluginColumn.childrenRect.height
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user