5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 17:42:24 +08:00
wails/v2/pkg/buildassets/onhold/dialog
2021-08-14 19:35:00 +10:00
..
info-dark2x.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
info-dark.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
info-light2x.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
info-light.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
question-dark2x.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
question-dark.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
question-light2x.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
question-light.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
README.md [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
warning-dark2x.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
warning-dark.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
warning-light2x.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
warning-light.png [windows-x] Simplify build assets 2021-08-14 19:35:00 +10: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 ID mypic
  • mypic-light.png - Standard definition icon with ID mypic, used when system theme is light
  • mypic-dark.png - Standard definition icon with ID mypic, used when system theme is dark
  • mypic2x.png - High definition icon with ID mypic
  • mypic-light2x.png - High definition icon with ID mypic, used when system theme is light
  • mypic-dark2x.png - High definition icon with ID mypic, 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