C++ / fmt (pull_request) Successful in 3s
JS/TS / lint (pull_request) Successful in 18s
JS/TS / fmt (pull_request) Successful in 17s
Python / fmt (pull_request) Successful in 28s
Python / lint (pull_request) Successful in 30s
Python / test (pull_request) Successful in 1m5s
Python / typecheck (pull_request) Successful in 1m24s
Rust / fmt (pull_request) Successful in 31s
C++ / build (pull_request) Successful in 2m21s
Rust / build (pull_request) Successful in 1m47s
Python / buildcheck (pull_request) Successful in 2m18s
Rust / clippy (pull_request) Successful in 1m12s
C++ / clang-tidy (pull_request) Successful in 4m3s
52 lines
1000 B
QML
52 lines
1000 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import Quickshell
|
|
import Quickshell.Hyprland
|
|
import QtQuick
|
|
import qs.Components
|
|
import qs.Helpers
|
|
import ZShell.Internal
|
|
|
|
Item {
|
|
id: root
|
|
|
|
readonly property var displayData: Wallpapers.getCrop(screen.name)
|
|
required property ShellScreen screen
|
|
property size screenResolution: Qt.size(screen.width * screenScale, screen.height * screenScale)
|
|
property real screenScale: Hyprland.monitorFor(screen).scale
|
|
|
|
anchors.fill: parent
|
|
|
|
Component.onCompleted: Hyprland.refreshMonitors()
|
|
|
|
WallpaperImage {
|
|
id: img
|
|
|
|
anchors.fill: parent
|
|
cropHeight: root.displayData?.height ?? 1.0
|
|
cropWidth: root.displayData?.width ?? 1.0
|
|
cropX: root.displayData?.x ?? 0.0
|
|
cropY: root.displayData?.y ?? 0.0
|
|
fadeDuration: 150
|
|
screenResolution: root.screenResolution
|
|
source: Wallpapers.current
|
|
|
|
Behavior on cropHeight {
|
|
Anim {
|
|
}
|
|
}
|
|
Behavior on cropWidth {
|
|
Anim {
|
|
}
|
|
}
|
|
Behavior on cropX {
|
|
Anim {
|
|
}
|
|
}
|
|
Behavior on cropY {
|
|
Anim {
|
|
}
|
|
}
|
|
}
|
|
}
|