-
Notifications
You must be signed in to change notification settings - Fork 39
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
chore: switch tray items to listview #734
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zsien The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6fd51ad
to
209a929
Compare
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.
之前是这里一开始没用 ListView 是因为 ListView 无法满足设计给定的动画要求。这里的动画要求非常复杂(细节你可以当面给 @tsic404 核对一下),此 PR 当前实现导致相应动画需求完全丢失,是不可接受的。
此外,Stash 区域的 item 存在不必要的动画,tray 区域拖拽时实时更新位置的动画也未实现,从快捷面板拖拽驻留的需求看上去也失效了。
(ps. Stash 区域最初没用 GridView 也是考虑到最初说允许 GridView 出现尺寸非固定的元素可能一个元素占据多个格子。目前没有再收到此类需求了,所以 Stash 区域改 GridView 应该问题不大)
f6ae995
to
608a828
Compare
* tray 使用 listview 实现 * stashed 使用 grid 实现 * 修改 traysortordermodel Issues: linuxdeepin/developer-center#10198
* 修复拖动到 show stash action 时崩溃 * 修复拖动后位置不变时崩溃
清理代码
608a828
to
acb9ae2
Compare
增加覆盖整个 tray 区域的 DropArea
deepin pr auto reviewFix the TraySortOrderModel to work with the new model |
这个修改后托盘的效果没有达到之前的动画效果吧? |
TAG Bot New tag: 1.99.3 |
TAG Bot New tag: 1.99.4 |
Issues: linuxdeepin/developer-center#10198