xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

钉钉网页版 App All In One

钉钉网页版 App All In One

Web App

https://im.dingtalk.com/

Electron App

原理解析:使用 electron 封装网页版 App

https://github.com/web-fullstack/dtalk-app

electron 设置 icon 大小 & macOS

bug ❌

solution ✅

trayx16.png 设置托盘图标

macOS 设置托盘图标或设置窗口图标

当前支持 PNG 和 JPEG 图片格式. 推荐 PNG ,因为它支持透明度无损压缩.

在 Windows, 你也可以使用 ICO 图标的格式.

常用小图标尺寸
16x16 (100% DPI scale)
20x20 (125% DPI scale)
24x24 (150% DPI scale)
32x32 (200% DPI scale)

常用大图标尺寸
32x32 (100% DPI scale)
40x40 (125% DPI scale)
48x48 (150% DPI scale)
64x64 (200% DPI scale)

256x256

https://yuzhigang.gitbooks.io/electron/content/api/native-image.html

Electron 自定义 macOS 的 Dock 图标

默认 Dock 图标

自定义 Dock 图标 ✅

BrowserWindow 对象的 icon 属性只对 Windows / Linux 系统生效,对于 macOS 需要通过 app.dock.setIcon 进行设置

https://juejin.cn/post/6844903957274296327

app icon generator

https://www.cnblogs.com/xgqfrms/p/13235397.html

https://appicon.co/

refs



©xgqfrms 2012-2025

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(435)  评论(3编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
历史上的今天:
2021-07-29 convert font to base64 online All In One
2021-07-29 Less to SCSS converter All In One
2021-07-29 echarts 实现多个图表共用一个 tooltip xAxis 指示线 All in One
2021-07-29 uni-app & image & img All In One
2020-07-29 SVG animation(text, background)
2020-07-29 How to use JavaScript to implement precise setTimeout and setInterval All In One
2020-07-29 GitHub Classroom
点击右上角即可分享
微信分享提示