Small toolbar icons?

Is there a guide somewhere to create and use an asset catalog with Xojo?

I can dig out my notes and make one.

2 Likes

You can get information about the format of an asset catalog at:

and compiling them can be done with actool:

actool --compile <destination folder> sourcefile.xcassets --minimum-deployment-target 10.12 --platform macosx

in terms of actually using the contents, you’ll want to use a method that specifically pulls values from the catalog. For instance, the NSImage.imageNamed method.

If you added an accent color to the catalog, you can have your app use it by adding the appropriate key to your info.plist file:

	<key>NSAccentColorName</key>
	<string>AccentColor</string>
3 Likes

Brilliant; thank you.

The old icon connection still works but is no longer suggested

https://www.dropbox.com/scl/fo/mrff0ircgpsrckp8549r7/ADaxvYB_9TPGaU8fDrarPZo?rlkey=d831yuv46qq3mumqsl3z8c6ch&dl=1