-
Notifications
You must be signed in to change notification settings - Fork 35
feat: implement wallpaper management system #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -27,13 +27,6 @@ Item { | |||||||
| width: output.outputItem.width | ||||||||
| height: output.outputItem.height | ||||||||
|
|
||||||||
| WallpaperController { | ||||||||
| id: wpCtrl | ||||||||
| output: animationDelegate.output.outputItem.output | ||||||||
| type: WallpaperController.Normal | ||||||||
| lock: true | ||||||||
| } | ||||||||
|
|
||||||||
| Row { | ||||||||
| x: - Helper.workspace.animationController.viewportPos * animationDelegate.localAnimationScaleFactor | ||||||||
| spacing: Helper.workspace.animationController.refGap * animationDelegate.localAnimationScaleFactor | ||||||||
|
|
@@ -44,12 +37,11 @@ Item { | |||||||
| height: animationDelegate.output.outputItem.height | ||||||||
| id: workspaceDelegate | ||||||||
| required property WorkspaceModel workspace | ||||||||
| ShaderEffectSource { | ||||||||
| id: wallpaperShot | ||||||||
| sourceItem: wpCtrl.proxy | ||||||||
| hideSource: false | ||||||||
| anchors.fill: parent | ||||||||
| Wallpaper { | ||||||||
|
||||||||
| Wallpaper { | |
| Wallpaper { | |
| anchors.fill: parent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wallpaperis used as aShaderEffectSource.sourceItembut has no size bindings; it may stay0x0and produce an empty source. Bind it to the cover size (e.g.anchors.fill: parent) to ensure the blur/scale effect has valid input.Wallpaper作为ShaderEffectSource.sourceItem使用但没有绑定尺寸,可能保持0x0导致源内容为空。建议将其绑定到 cover 尺寸(例如anchors.fill: parent),保证模糊/缩放效果有有效输入。