feat(gui): 添加系统托盘功能并优化 UI
- 实现系统托盘支持,包含打开主界面、反编译工具和退出程序的菜单项 - 添加窗口关闭时隐藏而不是退出的功能 -优化托盘图标,使用圆角图像 - 增加中文字体支持和全局字体设置- 移除 AIChatDialog 中的 MathJax 配置- 更新 BoxClassLoader,添加 com.dustinredmond 包的访问权限 - 在 build.gradle 中添加 SystemTray4J 和 JavaFX相关依赖
This commit is contained in:
@@ -114,6 +114,13 @@ dependencies {
|
||||
implementation 'com.kitfox.svg:svg-salamander:1.0'
|
||||
|
||||
implementation 'com.vladsch.flexmark:flexmark:0.64.8'
|
||||
|
||||
// SystemTray4J 核心库
|
||||
implementation 'com.github.kwhat:jnativehook:2.2.2'
|
||||
implementation 'com.dustinredmond.fxtrayicon:FXTrayIcon:4.0.1' // 增强版
|
||||
|
||||
// JavaFX 模块
|
||||
implementation 'org.openjfx:javafx-graphics:21'
|
||||
}
|
||||
|
||||
// 分离依赖项到 libs 目录
|
||||
|
||||
Reference in New Issue
Block a user