-
Notifications
You must be signed in to change notification settings - Fork 15
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
🐛 修复 Windows 上亚克力材质造成的窗口拖动性能问题 #204
Conversation
审核者指南由 Sourcery 提供此 PR 实现了一个可配置的窗口效果系统,适用于 Windows 和 macOS,重点解决与 Windows 上的 Acrylic 效果相关的性能问题。该实现添加了新的实用函数来管理窗口效果,并引入了一个用户设置,专门为 Windows 用户切换 Acrylic 效果。 窗口效果管理的类图classDiagram
class WindowUtils {
+createPreviewWindow(width, height)
+setWindowEffect(enable)
+setAcrylicWindowEffect(enable)
}
class Utils {
+isWindows11() bool
+setTransparentBackground(enable)
}
WindowUtils --> Utils : uses
class GeneralSettingsStore {
+autoUpdate: boolean
+enbaleSuperUser: boolean
+showRecallMessage: boolean
+applyAcrylicWindowEffects: boolean
}
GeneralSettingsStore --> WindowUtils : calls
GeneralSettingsStore : +watch(applyAcrylicWindowEffects)
文件级更改
针对关联问题的评估
可能关联的问题
提示和命令与 Sourcery 互动
自定义您的体验访问您的仪表板以:
获取帮助Original review guide in EnglishReviewer's Guide by SourceryThis PR implements a configurable window effect system for Windows and macOS, with a focus on fixing performance issues related to the Acrylic effect on Windows. The implementation adds new utility functions to manage window effects and introduces a user setting to toggle the Acrylic effect specifically for Windows users. Class Diagram for Window Effect ManagementclassDiagram
class WindowUtils {
+createPreviewWindow(width, height)
+setWindowEffect(enable)
+setAcrylicWindowEffect(enable)
}
class Utils {
+isWindows11() bool
+setTransparentBackground(enable)
}
WindowUtils --> Utils : uses
class GeneralSettingsStore {
+autoUpdate: boolean
+enbaleSuperUser: boolean
+showRecallMessage: boolean
+applyAcrylicWindowEffects: boolean
}
GeneralSettingsStore --> WindowUtils : calls
GeneralSettingsStore : +watch(applyAcrylicWindowEffects)
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
嗨 @A-kirami - 我已经审查了你的更改,它们看起来很棒!
这是我在审查期间查看的内容
- 🟡 一般问题:发现1个问题
- 🟢 安全性:一切看起来都很好
- 🟢 测试:一切看起来都很好
- 🟡 复杂性:发现1个问题
- 🟢 文档:一切看起来都很好
帮助我变得更有用!请点击每条评论上的👍或👎,我将使用反馈来改进你的审查。
Original comment in English
Hey @A-kirami - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
📦️ 此 PR 构建的应用已经准备就绪
*从提交 04131b5 构建 |
这个 PR 带来了什么样的更改?
这个 PR 是否存在破坏性变更?
描述
添加了设置开关以允许开启或禁用亚力克效果
动机和背景
resolve #170
其他信息
检查工作