C++ / fmt (pull_request) Successful in 5s
JS/TS / fmt (pull_request) Successful in 20s
JS/TS / lint (pull_request) Successful in 26s
Python / fmt (pull_request) Successful in 34s
Python / lint (pull_request) Successful in 32s
Python / test (pull_request) Successful in 59s
Python / typecheck (pull_request) Failing after 1m2s
C++ / build (pull_request) Successful in 1m50s
Rust / fmt (pull_request) Successful in 46s
Rust / build (pull_request) Successful in 1m40s
Python / buildcheck (pull_request) Successful in 2m27s
Rust / clippy (pull_request) Successful in 2m5s
C++ / clang-tidy (pull_request) Successful in 5m56s
89 lines
1.7 KiB
QML
89 lines
1.7 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import qs.Modules.Bar as Bar
|
|
|
|
Region {
|
|
id: root
|
|
|
|
required property Bar.BarLoader bar
|
|
readonly property real borderThickness: win.borderThickness
|
|
readonly property alias menuPopoutRegion: menuPopoutRegion
|
|
required property Panels panels
|
|
required property var win
|
|
|
|
height: win.height - bar.implicitHeight - win.borderThickness - win.dragMaskPadding * 2
|
|
intersection: Intersection.Xor
|
|
width: win.width - win.borderThickness * 2 - win.dragMaskPadding * 2
|
|
x: win.borderThickness + win.dragMaskPadding
|
|
y: bar.implicitHeight + win.dragMaskPadding + (bar.fullscreen ? 1 : 0)
|
|
|
|
R {
|
|
panel: root.panels.dashboardWrapper
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.launcher
|
|
}
|
|
|
|
R {
|
|
id: sidebarRegion
|
|
|
|
panel: root.panels.sidebar
|
|
width: panel.width * (1 - root.panels.sidebar.offsetScale) + root.borderThickness
|
|
x: root.win.width - width
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.osdWrapper
|
|
width: panel.width * (1 - root.panels.osd.offsetScale) + root.borderThickness
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.notifications
|
|
}
|
|
|
|
R {
|
|
height: panel.height * (1 - root.panels.utilities.offsetScale) + root.borderThickness
|
|
panel: root.panels.utilities
|
|
y: root.win.height - height
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.popoutsWrapper
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.resourcesWrapper
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.settings
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.dock
|
|
}
|
|
|
|
R {
|
|
panel: root.panels.clipboard
|
|
}
|
|
|
|
Region {
|
|
id: menuPopoutRegion
|
|
|
|
intersection: Intersection.Subtract
|
|
}
|
|
|
|
component R: Region {
|
|
required property Item panel
|
|
|
|
height: panel.height
|
|
intersection: Intersection.Subtract
|
|
width: panel.width
|
|
x: panel.x + root.borderThickness
|
|
y: panel.y + root.bar.implicitHeight
|
|
}
|
|
}
|