mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add SF Symbol support to NativeImage::CreateFromNamedImage (#48772)
* feat: add SF Symbol support to NativeImage::CreateFromNamedImage Co-authored-by: TheCommieAxolotl <87679354+TheCommieAxolotl@users.noreply.github.com> * use obj-c name in NSImage constructor Co-authored-by: TheCommieAxolotl <87679354+TheCommieAxolotl@users.noreply.github.com> * add test for named symbol image Co-authored-by: TheCommieAxolotl <87679354+TheCommieAxolotl@users.noreply.github.com> * apply suggested simplification Co-authored-by: TheCommieAxolotl <87679354+TheCommieAxolotl@users.noreply.github.com> * fix: support NX cocoa prefix Co-authored-by: TheCommieAxolotl <87679354+TheCommieAxolotl@users.noreply.github.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: TheCommieAxolotl <87679354+TheCommieAxolotl@users.noreply.github.com>
This commit is contained in:
@@ -202,8 +202,7 @@ Creates a new `NativeImage` instance from `dataUrl`, a base 64 encoded [Data URL
|
||||
Returns `NativeImage`
|
||||
|
||||
Creates a new `NativeImage` instance from the `NSImage` that maps to the
|
||||
given image name. See Apple's [`NSImageName`](https://developer.apple.com/documentation/appkit/nsimagename#2901388)
|
||||
documentation for a list of possible values.
|
||||
given image name. See Apple's [`NSImageName`](https://developer.apple.com/documentation/appkit/nsimagename#2901388) documentation and [SF Symbols](https://developer.apple.com/sf-symbols/) for a list of possible values.
|
||||
|
||||
The `hslShift` is applied to the image with the following rules:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user