Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.4 KiB
QML
40 lines
1.4 KiB
QML
import QtQuick
|
|
import qs.compat.omarchy.Commons
|
|
// Rectangle-compatible surface with Omarchy border specs. Uses native
|
|
// Rectangle.border for cheap flat/uniform borders and BorderOverlay for
|
|
// gradients or per-side widths.
|
|
Rectangle {
|
|
id: root
|
|
|
|
property var borderSpec: Border.none()
|
|
property real padding: 0
|
|
property real topPadding: padding
|
|
property real rightPadding: padding
|
|
property real bottomPadding: padding
|
|
property real leftPadding: padding
|
|
|
|
readonly property real borderTop: Border.top(borderSpec)
|
|
readonly property real borderRight: Border.right(borderSpec)
|
|
readonly property real borderBottom: Border.bottom(borderSpec)
|
|
readonly property real borderLeft: Border.left(borderSpec)
|
|
readonly property real contentTopInset: borderTop + topPadding
|
|
readonly property real contentRightInset: borderRight + rightPadding
|
|
readonly property real contentBottomInset: borderBottom + bottomPadding
|
|
readonly property real contentLeftInset: borderLeft + leftPadding
|
|
readonly property bool usesOverlayBorder: Border.needsOverlay(borderSpec)
|
|
|
|
border.color: Border.canUseNative(borderSpec) ? Border.color(borderSpec) : "transparent"
|
|
border.width: Border.canUseNative(borderSpec) ? Border.uniformWidth(borderSpec) : 0
|
|
|
|
Loader {
|
|
anchors.fill: parent
|
|
active: root.usesOverlayBorder
|
|
|
|
sourceComponent: BorderOverlay {
|
|
anchors.fill: parent
|
|
radius: root.radius
|
|
borderSpec: root.borderSpec
|
|
}
|
|
}
|
|
}
|