move workspaces to icon button
This commit is contained in:
parent
c5ac7fe773
commit
1d350e35d6
2 changed files with 41 additions and 56 deletions
|
|
@ -1,3 +1,5 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.config
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
|
@ -12,6 +14,16 @@ RowLayout {
|
|||
|
||||
model: Hyprland.workspaces
|
||||
|
||||
Workspace {}
|
||||
Loader {
|
||||
id: loader
|
||||
required property HyprlandWorkspace modelData
|
||||
|
||||
active: modelData.id > 0
|
||||
|
||||
sourceComponent: workspace
|
||||
property Component workspace: Workspace {
|
||||
workspace: loader.modelData
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue