Electron 37.0.0
Electron 37.0.0 已发布!它包括对 Chromium 138、V8 13.8 和 Node 22.16.0 的升级。
🌐 Electron 37.0.0 has been released! It includes upgrades to Chromium 138, V8 13.8, and Node 22.16.0.
Electron 团队很高兴地宣布发布 Electron 37.0.0!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的发布网站下载。请继续阅读以了解此次发布的详细信息。
🌐 The Electron team is excited to announce the release of Electron 37.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. Continue reading for details about this release.
如果你有任何反馈,请通过 Bluesky 或 Mastodon 与我们分享,或者加入我们的社区 Discord!可以在 Electron 的 问题追踪器 报告漏洞和功能请求。
🌐 If you have any feedback, please share it with us on Bluesky or Mastodon, or join our community Discord! Bugs and feature requests can be reported in Electron's issue tracker.
Google Summer of Code 开始
🌐 Google Summer of Code Begins
我们两位 Google Summer of Code 贡献者已经开始了该项目的编码阶段!
🌐 Our two Google Summer of Code contributors have started the program's coding period!
- @nilayarya 正在 Electron 核心中开发一个新的 保存/恢复窗口状态 API。新的 API 将提供一种内置的、标准化的方式来处理窗口状态的持久化。详见 Nilay 正在进行中的 RFC:electron/rfcs#16。
- @hitarth-gg 正在努力使用 Chrome Manifest V3 API 现代化长期未活跃的 Devtron 扩展。该项目将为开发者提供工具,以调试 IPC 通信、跟踪事件监听器,并可视化他们的 Electron 应用中的模块依赖。
对于我们的 GSOC 参与者来说,这几周是令人兴奋的,敬请期待更多更新!
🌐 It has been an exciting couple of weeks for our GSOC participants, so stay tuned for more updates!
显著变化
🌐 Notable Changes
圆角平滑:原生 CSS Squircle
🌐 Smooth Corners: Native CSS Squircles
Electron 37 引入了自定义 -electron-corner-smoothing CSS 属性,这使应用能够创建更平滑的圆角,以匹配苹果 macOS 的设计风格。这个功能最初是在 Electron 36 中推出的,但我们觉得它值得获得更多关注。
🌐 Electron 37 introduces the custom -electron-corner-smoothing CSS property, which allows apps to create smoother rounded corners to match Apple's macOS design language. This feature originally landed in Electron 36, but we felt like it deserved a brighter spotlight.
| 代码 | 结果 |
|---|---|
|
与标准的 border-radius 属性不同,它会从矩形上切出四分之一圆角,-electron-corner-smoothing 会将曲线平滑地过渡为具有连续周长的 方形圆 形状。
🌐 Unlike the standard border-radius property, which carves quarter-circle corners out of a rectangle, -electron-corner-smoothing smoothly transitions
the curve into a squircle shape with a continuous perimeter.
你可以使用 0% 到 100% 的数值来调整平滑度,或者使用 system-ui 值以匹配操作系统的风格(macOS 上为 60%,其他系统为 0%)。
这一设计增强可以应用于边框、轮廓和阴影,为你的应用增添一层细腻的精致感。
🌐 You can adjust the smoothness using values from 0% to 100%, or use the system-ui value to match the operating system's style (60% on macOS and 0% otherwise).
This design enhancement can be applied on borders, outlines, and shadows, giving your app a subtle layer of polish.
阅读更多关于 Electron 中 squircles 实现的信息,请参见 @clavin 的 RFC 0012。 该文档更详细地介绍了动机和技术实现。
初始设计灵感来自 Figma 的圆角平滑实现。想了解他们为实现圆角平滑所做的探索,请阅读 《拼命寻找 squircles》。
