github.com/AlpineAIO/wails/v2@v2.0.0-beta.32.0.20240505041856-1047a8fa5fef/pkg/buildassets/onhold/dialog/README.md (about)

     1  ## Dialog
     2  
     3  NOTE: Currently, this is a Mac only feature.
     4  
     5  Place any PNG file in this directory to be able to use them in message dialogs.
     6  The files should have names in the following format: `name[-(light|dark)][2x].png`
     7  
     8  Examples:
     9  
    10  * `mypic.png` - Standard definition icon with ID `mypic`
    11  * `mypic-light.png` - Standard definition icon with ID `mypic`, used when system theme is light
    12  * `mypic-dark.png` - Standard definition icon with ID `mypic`, used when system theme is dark
    13  * `mypic2x.png` - High definition icon with ID `mypic`
    14  * `mypic-light2x.png` - High definition icon with ID `mypic`, used when system theme is light
    15  * `mypic-dark2x.png` - High definition icon with ID `mypic`, used when system theme is dark
    16  
    17  ### Order of preference
    18  
    19  Icons are selected with the following order of preference:
    20  
    21  For High Definition displays:
    22  * name-(theme)2x.png
    23  * name2x.png
    24  * name-(theme).png
    25  * name.png
    26  
    27  For Standard Definition displays:
    28  * name-(theme).png
    29  * name.png