The build directory houses all the build-related assets of your application.
The structure is:
- dialog - Icons for dialogs
- tray - Icons for the system tray
- mac - MacOS specific files
- linux - Linux specific files
- windows - Windows specific files
Place any PNG file in this directory to be able to use them in message dialogs.
The files should have names in the following format: name[-(light|dark)][2x].png
Examples:
mypic.png
- Standard definition icon with IDmypic
mypic-light.png
- Standard definition icon with IDmypic
, used when system theme is lightmypic-dark.png
- Standard definition icon with IDmypic
, used when system theme is darkmypic2x.png
- High definition icon with IDmypic
mypic-light2x.png
- High definition icon with IDmypic
, used when system theme is lightmypic-dark2x.png
- High definition icon with IDmypic
, used when system theme is dark
Icons are used with the following order of preference:
For High Definition displays:
- name-(theme)2x.png
- name2x.png
- name-(theme).png
- name.png
For Standard Definition displays:
- name-(theme).png
- name.png
Place any PNG file in this directory to be able to use them as tray icons. The name of the filename will be the ID to reference the image.
Example:
mypic.png
- May be referenced usingruntime.Tray.SetIcon("mypic")