Background: add default wallpaper
This commit is contained in:
parent
b6166a2a7c
commit
c0900b105b
4 changed files with 20 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ import Quickshell
|
|||
import Quickshell.Wayland
|
||||
import qs.Commons
|
||||
import qs.Services
|
||||
import qs.Modules.SettingsPanel
|
||||
import qs.Widgets
|
||||
|
||||
Variants {
|
||||
id: backgroundVariants
|
||||
|
|
@ -20,6 +22,8 @@ Variants {
|
|||
// Internal state management
|
||||
property string transitionType: "fade"
|
||||
property real transitionProgress: 0
|
||||
// Scaling support for widgets that rely on it
|
||||
property real scaling: ScalingService.getScreenScale(screen)
|
||||
|
||||
readonly property real edgeSmoothness: Settings.data.wallpaper.transitionEdgeSmoothness
|
||||
readonly property var allTransitions: WallpaperService.allTransitions
|
||||
|
|
@ -87,6 +91,15 @@ Variants {
|
|||
left: true
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: ScalingService
|
||||
function onScaleChanged(screenName, scale) {
|
||||
if ((screen !== null) && (screenName === screen.name)) {
|
||||
scaling = scale
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: debounceTimer
|
||||
interval: 333
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue