Files
crypto_monitor_user/docs/shortcut-icon.md
T
dekun 53863559f4 Initialize crypto_monitor_user (user edition) from monitor codebase.
Retarget git remote, install path, and deploy docs from crypto_monitor to crypto_monitor_user.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 16:18:13 +08:00

1.8 KiB
Raw Blame History

Chrome 桌面快捷方式图标说明

图标从哪来?

用 Chrome 「创建快捷方式」「安装应用」 时,桌面/开始菜单图标不是操作系统自带的,而是浏览器从你打开的网站读取的,优先级大致为:

  1. manifest.webmanifest 里的 icons(192×192,512×512)
  2. link rel="apple-touch-icon"(约 180×180)
  3. link rel="icon" / favicon.ico
  4. 若都没有 → 灰色地球或网页标题首字

本仓库已在 中控三所监控页 配置品牌图标.PNG/ICO 由 Pillow 生成.

  • 中控:深色圆角底 + 青绿趋势线 + K 线,安装名「复盘系统中控」
  • 三所:各所用交易所标识色与字标(币安菱形 / OKX 方块 / Gate G),安装名分别为「Binance 交易系统」「OKX 交易系统」「Gate 交易系统」

文件位置

位置 访问路径
源稿 brand/icon.svg,brand/icons/*.png,brand/icons/{binance,okx,gate}/
Manifest brand/manifest.webmanifest(中控),brand/manifest.{binance,okx,gate}.webmanifest
中控 manual_trading_hub/static/icons//assets/icons/...
三所 crypto_monitor_*/static/icons//static/icons/...

重新生成 / 同步

python scripts/generate_brand_icons.py
python scripts/sync_brand_icons.py
git pull   # 服务器部署后
pm2 restart …

快捷方式仍显示旧图标?

Chrome / Windows 会缓存 favicon:

  1. 浏览器打开站点,Ctrl+F5 强刷
  2. 删除旧快捷方式,重新「创建快捷方式」
  3. 必要时清除 Chrome 站点数据(该域名)后再创建

自定义图标

可替换 brand/icon.svg 后重新运行上面两条命令;或把设计好的 icon-192.png,icon-512.png 放入 brand/icons/sync_brand_icons.py.