Skip to content
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

feat: Implement the logic for displaying launchpad positions on multi… #336

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

robertkill
Copy link
Contributor

…ple screens.

Implement the logic for displaying launchpad positions on multiple screens.

Log:

@@ -22,11 +22,6 @@ Item {

KeyNavigation.tab: appGridLoader.item

function getHorizontalCoordinatesOfSideBar()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

设计上需要dock的launcherItem与sideBar的中线对齐

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

左右的没法跟sidebar对齐
这个我找设计先对下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已跟设计确认上下时保持原来对齐方式 左右时边线对齐

qml/Main.qml Outdated
windowedFrameWindow.screen = dock.rootObject.screen
fullscreenFrame.screen = dock.rootObject.screen
} else {
windowedFrameWindow.screen = Screen
Copy link
Contributor

@18202781743 18202781743 Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的Screen是啥?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以不处理
已删除

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen这个附加属性,与Window.screen类型是匹配的,
只是这里的Screen设置跟它自己是相同的了,应该可以不用置,

@robertkill robertkill force-pushed the master branch 3 times, most recently from 074b211 to fe4752f Compare June 26, 2024 03:36
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, robertkill

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

…ple screens.

Implement the logic for displaying launchpad positions on multiple screens.

Log:
@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • 代码重构可能导致逻辑变化,需要确认新的布局逻辑是否符合预期。
  • 移除了原有的窗口大小和位置计算逻辑,使用了DLayerShellWindow的边距属性,这可能是一个设计决策,但需要确保新的布局机制是正确的。
  • 新增的DLayerShellWindow的边距属性计算逻辑可能存在重复计算或冗余,需要优化以提高性能。
  • 代码中使用了console.warn来处理无效的边距计算,这可能是一个错误处理机制,但应该考虑使用更合适的日志记录方式。

是否建议立即修改:

  • 是,需要确保新的布局逻辑是正确的,并且性能优化是必要的。同时,错误处理机制应该被替换为更合适的日志记录方式。

@robertkill robertkill merged commit b28a1c6 into linuxdeepin:master Jun 26, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants