Skip to content

Release v1.0.4#2

Open
easterCat wants to merge 13 commits intomainfrom
release-v1.0.4
Open

Release v1.0.4#2
easterCat wants to merge 13 commits intomainfrom
release-v1.0.4

Conversation

@easterCat
Copy link
Owner

No description provided.

EasterCat and others added 13 commits March 20, 2026 22:02
Made-with: Cursor
…exToRgba safety

- Integrate objc2 crate to properly set NSWindow transparent background
- Fix hexToRgba to handle undefined color values
- Enhance overlay.html CSS for better transparency support

Made-with: Cursor
- Remove fullscreen(true) which causes black screen on Windows
- Use set_position/set_size to cover primary monitor instead
- macOS keeps fullscreen for best transparency support

Made-with: Cursor
- Change main window default size from 400x600 to 960x640
- Expand BUILTIN_PRESETS from 16 to 122 crosshair styles
- Add helper function for cleaner preset definition
- Add tournament presets for popular esports titles

Made-with: Cursor
- 添加 exit_app 命令,使用 Tauri API 正确退出应用
- 修复 Quit 菜单:使用 invoke('exit_app') 替代 window.close()
- 修复窗口关闭按钮:添加 CloseRequested 事件监听,关闭窗口时退出整个应用
- 移除 iconAsTemplate 配置(Windows 不兼容)

Made-with: Cursor
托盘修复:
- 移除 tauri.conf.json 中的 trayIcon 配置,避免与前端创建的托盘冲突
- 在 useTray.ts 中添加 defaultWindowIcon() 作为托盘图标
- 增强 show_settings 命令,添加 request_user_attention 使窗口更容易唤醒
- 添加 core:app:default 和 request-user-attention 权限

UI 美化:
- 将固定宽度布局改为响应式 grid 布局,适配窗口大小变化
- 优化 Preview 预览区域,使用渐变背景和阴影效果
- 美化滑块样式,添加渐变进度条
- 改进颜色选择器按钮的阴影和缩放动画
- 将复选框改为更现代的 Switch 滑动开关样式
- 优化保存按钮,添加渐变背景和悬停动效
- 统一圆角、间距和字体大小等设计细节

Made-with: Cursor
准星透明背景修复:
- 优化 overlay.html 的 CSS,彻底移除所有背景色
- 简化 CrosshairOverlayApp.tsx 的透明设置逻辑
- 添加 Windows WebView 兼容的 CSS 样式

响应式布局优化:
- SettingsPanel 改为 minmax(260px, 1fr) 更好地适配小窗口
- 预览区域 maxWidth 从 240px 调整为 200px 适应小窗口
- 样式按钮网格改为 minmax(64px, 1fr) 更紧凑
- 添加 flexWrap 使标题在小窗口换行显示

Made-with: Cursor
Windows 准星透明背景:
- 添加 webview2-com 依赖,用于设置 WebView2 背景色为透明

单实例检测:
- 添加 tauri-plugin-single-instance 插件
- 防止用户重复启动多个应用
- 第二个实例会自动聚焦到主窗口

交互体验优化:
- 滑块组件添加 +/- 按钮,可直接点击调整数值
- 滑块添加直接输入框,可输入精确数值
- 支持键盘上下箭头调整(焦点在输入框时)
- 支持鼠标滚轮滚动调整数值

Made-with: Cursor
- 移除所有动效准星,解决显示黑色和无动效问题
- 重新设计预设准星集合,从340+扩展到350+个
- 新增50款dot准星,涵盖各种尺寸和颜色
- 优化窗口大小设置为1024x768
- 修复透明度、边框、任务栏等问题
- 添加专业游戏、战术、创意等多个系列预设
- 所有预设均为静态,确保稳定性
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.

1 participant