Commit Graph

25 Commits

Author SHA1 Message Date
BTMuli
288fa91106 🚸 调整hint 2026-01-03 19:30:52 +08:00
BTMuli
b42b13f79a 🚸 当允许点击外部关闭时增加关闭按钮
close #201
2026-01-03 00:58:11 +08:00
BTMuli
55a35471b6 🧑‍💻 调整Sentry数据 2025-12-31 14:19:10 +08:00
BTMuli
d50dcc34c6 🌱 构建脚本 2025-12-30 02:53:00 +08:00
Copilot
7544fa1489 支持托盘 (#181)
* Initial plan

* Add system tray icon feature with show/quit menu

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Apply Rust code formatting

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Address code review feedback: improve documentation and reduce duplication

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Make tray behavior configurable - add closeToTray setting

- Add closeToTray setting in app store (default: false)
- Add UI toggle in PageConfig.vue for "关闭到托盘" setting
- Modify window close handler to emit event instead of always hiding
- Add hide_main_window and quit_app commands in backend
- Frontend listens for close event and respects user preference
- When closeToTray is enabled, window minimizes to tray on close
- When disabled, application quits on close (original behavior)

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Remove duplicate SUB_WINDOW_LABELS constant - use shared constant from lib.rs

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Fix tray icon issues: remove duplicate tray, add icon loading, close sub-windows on hide

1. Remove duplicate tray icon: Removed trayIcon config from tauri.conf.json (was creating 2 trays)
2. Add proper icon loading: Use image crate to decode PNG and create RGBA icon data
3. Close sub-windows when hiding: Modified hide_main_window to close all sub-windows before hiding
4. Sync with master branch: Merged latest commit c8fe03c

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Address code review: remove anyhow, add separator, improve comments

1. Remove anyhow dependency - Use Tauri's InvalidIcon error instead
2. Add menu separator between "显示窗口" and "退出应用"
3. Add comment explaining image crate necessity (Tauri Image only accepts raw RGBA)
4. Keep HTTPS URLs with note about SSH preference for local development
5. Image crate remains necessary as Tauri doesn't provide PNG decoding

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Revert to SSH URLs for plugin dependencies as requested

Changed all tauri-plugin git URLs from HTTPS to SSH format.
Project CI has SSH configuration, so SSH is the preferred method.

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

* Use storeToRefs for closeToTray property

Changed closeToTray access to use storeToRefs in both App.vue and PageConfig.vue
for better reactivity and consistency with other store properties.

Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com>
2025-12-14 14:30:15 +08:00
BTMuli
b5e4b013c9 🚸 调整hint 2025-11-22 17:35:08 +08:00
BTMuli
d74e7a7a31 🥅 处理异常,清除缓存后重启 2025-11-15 14:54:06 +08:00
BTMuli
41a144fec2 🚸 优化图片调整浮窗样式 2025-10-08 11:49:47 +08:00
BTMuli
6d8f7967fe 🚸 修正状态提示信息 2025-06-06 13:42:07 +08:00
BTMuli
0d6ba14a0e ♻️ 修正import,调整路径 2025-05-23 11:58:11 +08:00
目棃
4dc273662d 🚸 调整hint 2025-03-19 09:16:16 +08:00
目棃
3a102f31be 🚸 一些调整 2025-03-08 17:01:25 +08:00
目棃
ac4d2a319f 🚸 即时响应页面适配 2025-03-08 16:06:06 +08:00
目棃
c4bd07069c 🎨 移除测试点击 2025-02-25 12:00:14 +08:00
目棃
7f5ffab2a7 🎨 调整条件 2025-02-25 10:39:40 +08:00
目棃
d2e6d112d5 🔧 无痕浏览,默认开启 2025-02-24 19:09:49 +08:00
目棃
63b7f685c1 🚸 支持配置图像质量 2025-01-10 17:53:13 +08:00
目棃
3c0b02d26b 💄 mac下不显示分享设置 2025-01-09 11:19:37 +08:00
目棃
24e3f11c4a ♻️ loading组件重构 2024-12-16 11:13:30 +08:00
目棃
3f0115ecba 🚀 v0.6.6 2024-12-13 16:49:46 +08:00
目棃
3ed6d503d4 ♻️ 全面整理重构 2024-12-13 16:15:01 +08:00
目棃
dbed43bf7e 帖子话题内容解析跳转 2024-12-05 13:42:03 +08:00
目棃
02ddb441a0 🔧 调整配置 2024-12-04 10:39:26 +08:00
目棃
ad1e8339ac 分享图生成阈值自定义 2024-11-30 11:59:39 +08:00
目棃
3fef8467f4 ♻️ 调整目录结构 2024-11-19 14:45:29 +08:00