diff --git a/packages/main/src/bundle.esm.ts b/packages/main/src/bundle.esm.ts index 747c29e96aec..f770e818a792 100644 --- a/packages/main/src/bundle.esm.ts +++ b/packages/main/src/bundle.esm.ts @@ -231,12 +231,12 @@ registerIconLoader("my-custom-icons", () => { }); registerIcon("pencil", { - collection: "my-custom-icons", + collection: "my-custom-icons2", customTemplate: IconPensilJSXTemplate, }); unsafeRegisterIcon("pencil2", { - collection: "my-custom-icons", + collection: "my-custom-icons3", customTemplateAsString: ` @@ -246,7 +246,7 @@ unsafeRegisterIcon("pencil2", { }); registerIcon("myIcon", { - collection: "my-custom-icons", + collection: "my-custom-icons4", pathData: "M16.5 76c0-41 32-75 72-75h335c40 0 72 34 72 75v329c0 41-32 75-72 75h-335c-40 0-72-34-72-75V76zm263 356h144c13 0 24-12 24-27V76c0-15-11-27-24-27h-144v383zM88.5 49c-13 0-24 12-24 27v329c0 15 11 27 24 27h143V49h-143z", }); diff --git a/packages/main/test/pages/Icon_custom.html b/packages/main/test/pages/Icon_custom.html index 3ea1cff1e644..5b6b13055169 100644 --- a/packages/main/test/pages/Icon_custom.html +++ b/packages/main/test/pages/Icon_custom.html @@ -13,19 +13,24 @@ tnt/actor
my-custom-icons/mark
+

+ + + +

Custom icons via JSX template

- - - + + +

Custom icons via template string

- - - + + +

Custom icons via pathData

- - - + + +