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

🚀 功能建议:优化台前调度下的窗口位置 #689

Open
4 of 5 tasks
Er1cG1ao opened this issue Sep 28, 2024 · 2 comments
Open
4 of 5 tasks

🚀 功能建议:优化台前调度下的窗口位置 #689

Er1cG1ao opened this issue Sep 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Er1cG1ao
Copy link

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

我个人的dock放在了左边所以台前调度自动跑到了右边。而无论是通过快捷键还是鼠标查词呼出的翻译窗口都会在右侧保持一定距离,我猜这是作者大大有意为之,为台前调度留出空间。但是我希望新增一个选项:选择是否忽略台前调度——即使开启了台前调度并且在右侧,仍可以让翻译窗口默认紧贴屏幕右侧,不保留距离。

使用场景

在开启右侧台前调度的情况下,仍可以直接让翻译窗口紧贴右上角,不保留与屏幕右边框之间的距离。

实现方案(可选)

我个人不懂swiftUI,但是我猜设置窗口位置并不难。逻辑大概就是:当“忽略台前调度”功能关闭时(默认):窗口呼出时保留一定距离(就像现在一样)。而当“忽略台前调度”功能开启时:窗口呼出时紧贴右上角,不保留距离。

是否愿意提交 PR 实现该功能

  • 我愿意提交 PR 实现该功能
@Er1cG1ao Er1cG1ao added the enhancement New feature or request label Sep 28, 2024
Copy link

Hello Er1cG1ao, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented Sep 29, 2024

ok,明天我看一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants