Also jellyfin-mpv-shim, mangohud logging, portal-backed xdg-open, systemd-resolved with fallback DNS, and keyring under the user manager. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
87 lines
2.4 KiB
QML
87 lines
2.4 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import qs.HyprChrome.Theme
|
|
|
|
// ChromeBackdrop's drafting grid at full dim, as a plain Item: a lock surface
|
|
// cannot host a PanelWindow, and nothing behind it is shown anyway.
|
|
Item {
|
|
id: root
|
|
|
|
property int gridSpacing: 60
|
|
property real gridOpacity: 0.10
|
|
property real crossOpacity: 0.15
|
|
property int crossSize: 20
|
|
property int crossWeight: 3
|
|
|
|
readonly property color gridColor: Qt.hsla(Theme.accent.hslHue,
|
|
Theme.accent.hslSaturation * 0.45,
|
|
Theme.accent.hslLightness,
|
|
1)
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: Theme.surface
|
|
}
|
|
|
|
Repeater {
|
|
model: Math.ceil(root.width / root.gridSpacing)
|
|
|
|
Rectangle {
|
|
required property int index
|
|
|
|
x: index * root.gridSpacing
|
|
width: 1
|
|
height: root.height
|
|
color: root.gridColor
|
|
opacity: root.gridOpacity
|
|
}
|
|
}
|
|
|
|
Repeater {
|
|
model: Math.ceil(root.height / root.gridSpacing)
|
|
|
|
Rectangle {
|
|
required property int index
|
|
|
|
y: index * root.gridSpacing
|
|
width: root.width
|
|
height: 1
|
|
color: root.gridColor
|
|
opacity: root.gridOpacity
|
|
}
|
|
}
|
|
|
|
Repeater {
|
|
id: crosses
|
|
|
|
readonly property int columns: Math.ceil(root.width / (root.gridSpacing * 2)) + 1
|
|
readonly property int rows: Math.ceil(root.height / (root.gridSpacing * 2)) + 1
|
|
model: columns * rows
|
|
|
|
Item {
|
|
required property int index
|
|
|
|
x: (index % crosses.columns) * root.gridSpacing * 2 - Math.floor(root.crossSize / 2)
|
|
y: Math.floor(index / crosses.columns) * root.gridSpacing * 2 - Math.floor(root.crossSize / 2)
|
|
width: root.crossSize
|
|
height: root.crossSize
|
|
opacity: root.crossOpacity
|
|
|
|
Rectangle {
|
|
y: Math.floor(root.crossSize / 2) - Math.floor(root.crossWeight / 2)
|
|
width: parent.width
|
|
height: root.crossWeight
|
|
color: Theme.muted
|
|
}
|
|
|
|
Rectangle {
|
|
x: Math.floor(root.crossSize / 2) - Math.floor(root.crossWeight / 2)
|
|
width: root.crossWeight
|
|
height: parent.height
|
|
color: Theme.muted
|
|
}
|
|
}
|
|
}
|
|
}
|