Files
zerorigin 0b8b9b0775 迁移到 mygo 单进程架构并接入签名自更新
- 单进程:托盘常驻 + 原生设置窗口(internal/settings),移除 Wails 前端与 IPC
- 触发器(鼠标角落 / 边缘滚轮 / 热键)+ 规则引擎 + 动作注册表
- 调节提示条:截屏 + glass.Blur 三层毛玻璃、背景跟随屏幕变化、悬停光感与拖动
- 音量 Core Audio COM、亮度 DDC/CI(gamma 兜底)、多显示器求平均
- 配置热重载 + 版本迁移 v1→v5、便携模式、崩溃取证三件套
- updater/native 插件 + 托盘「检查更新…」,watchdog 识别更新重启
- 自建 Gitea 发布:scripts/publish-gitea.ps1(updates.url 指向 latest Release)
2026-11-16 10:31:44 +08:00

32 lines
1.5 KiB
Go

// Package osd 的矢量图标。
//
// 全部使用 24x24 viewBox 与 currentColor,由 ui.Icon 按 text color 绘制,
// 在高 DPI 下保持清晰;不依赖系统字体里的私用区字形。
package osd
import (
"github.com/egoist/mygo/ui"
)
var (
// volumeIcon 是带两道声波的喇叭,用于音量调节。
volumeIcon = ui.MustParseSVG([]byte(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 5 6.5 8.5H3v7h3.5L11 19V5Z" fill="currentColor" stroke="none"/>
<path d="M15.2 9a4.3 4.3 0 0 1 0 6"/>
<path d="M18.2 6.6a8 8 0 0 1 0 10.8"/>
</svg>`))
// muteIcon 是喇叭加叉,用于静音状态。
muteIcon = ui.MustParseSVG([]byte(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 5 6.5 8.5H3v7h3.5L11 19V5Z" fill="currentColor" stroke="none"/>
<path d="M15.2 9.2l4.6 5.6"/>
<path d="M19.8 9.2l-4.6 5.6"/>
</svg>`))
// brightnessIcon 是太阳,用于屏幕亮度调节。
brightnessIcon = ui.MustParseSVG([]byte(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="4.2" fill="currentColor" stroke="none"/>
<path d="M12 2.2v2.3M12 19.5v2.3M2.2 12h2.3M19.5 12h2.3M4.9 4.9l1.6 1.6M17.5 17.5l1.6 1.6M19.1 4.9l-1.6 1.6M6.5 17.5l-1.6 1.6"/>
</svg>`))
)