Initial Commit
This commit is contained in:
31
BarArea.qml
Normal file
31
BarArea.qml
Normal file
@@ -0,0 +1,31 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Widgets
|
||||
|
||||
WrapperRectangle {
|
||||
id: barArea
|
||||
|
||||
property var monitor: "DP-1"
|
||||
property var components: [] // Add this new property
|
||||
|
||||
color: "transparent"
|
||||
margin: 0
|
||||
|
||||
RowLayout {
|
||||
Repeater {
|
||||
model: barArea.components
|
||||
|
||||
delegate: Loader {
|
||||
required property var modelData
|
||||
// The source of the loader is the component from the model
|
||||
source: modelData
|
||||
onLoaded: {
|
||||
item.monitor = barArea.monitor;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user