mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 10:50:53 -07:00
Dialog
NOTE: Currently, this is a Mac only feature.
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 IDmypicmypic-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 IDmypicmypic-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
Order of preference
Icons are selected 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