WIP: 分屏动效与四分屏 - #1289
Draft
glyvut wants to merge 2 commits into
Draft
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: glyvut The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideImplements animated edge-tiling preview that grows from the dragged window and adds four-corner (quadrant) tiling modes triggered by cursor position along the screen edges. Sequence diagram for animated edge-tiling preview from dragged windowsequenceDiagram
actor User
participant WSeat
participant SeatSurfaceManager
participant RootSurfaceContainer
participant QuickTile
participant EdgeTilePreview
User->>WSeat: drag window to screen edge
WSeat->>SeatSurfaceManager: startEdgeTileDelay
SeatSurfaceManager->>RootSurfaceContainer: detectEdgeTilingForSeat
RootSurfaceContainer->>RootSurfaceContainer: outputAt(pos)
RootSurfaceContainer->>QuickTile: geometry(mode, output)
QuickTile-->>RootSurfaceContainer: QRectF geo
RootSurfaceContainer->>RootSurfaceContainer: getSeatContainerOrDefault(seat)
RootSurfaceContainer->>RootSurfaceContainer: moveResizeSurface
RootSurfaceContainer-->>RootSurfaceContainer: QRectF sourceGeo
RootSurfaceContainer->>EdgeTilePreview: setProperty(sourceGeometry, sourceGeo)
RootSurfaceContainer->>EdgeTilePreview: setProperty(targetGeometry, geo)
RootSurfaceContainer->>EdgeTilePreview: setVisible(true)
EdgeTilePreview->>EdgeTilePreview: onVisibleChanged
EdgeTilePreview->>EdgeTilePreview: applyGeometry(sourceGeometry)
EdgeTilePreview->>EdgeTilePreview: applyGeometry(targetGeometry)
EdgeTilePreview->>EdgeTilePreview: NumberAnimation on x,y,width,height
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Add TopLeft/TopRight/BottomLeft/BottomRight edge tiling modes so dragging to the corner zones of the left/right edges tiles to a quarter of the screen. Add edgeQuadrantZoneRatio dconfig to tune the corner trigger area ratio. 边缘平铺新增四分之一屏(角落象限)模式,光标位于左右边缘上下角落 区域时平铺到屏幕四分之一处,中间区域保持半屏平铺。新增 edgeQuadrantZoneRatio配置项控制角落触发区域比例。 Log: 支持四分之一屏边缘平铺 Influence: 边缘拖拽平铺新增角落象限模式,可平铺到屏幕四分之一区域。
Animate the edge tile preview so it smoothly grows from the dragged surface's current geometry to the target tile area (250ms), mirroring KWin's outline effect. Pass the seat to updateEdgeTilePreview to obtain the source geometry. 边缘平铺预览增加动效:从被拖拽窗口的当前位置平滑动画过渡到目标 平铺区域(250ms),与KWin轮廓效果一致。updateEdgeTilePreview新增 seat参数以获取拖拽窗口的几何位置。 Log: 边缘平铺预览增加动效 Influence: 拖拽边缘预览时显示平滑过渡动画,视觉反馈更清晰。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Add animated edge previews and support four-way corner tiling during window dragging.
New Features:
Enhancements: