This section is dedicated to the visual and UX aspects of your Tauri application.
Icons
Tauri ships with an iconset based on its logo. This is probably NOT what you want when you ship your app. To remedy this common situation, there is a node.js script that will take an input file and create all the icons needed for the various platforms and by default place them in your src-tauri/icons folder.
Should you however, need to source your icons from some other location, you can edit this part of the src-tauri/Cargo.toml file:
Notes on filetypes:
- icon.icns = MacOS
- icon.ico = MS Windows
- *.png = Linux
Splashscreen
Bootstrapping an application may take time. Making users wait without explanations is bad for your UX; therefore, Tauri allows you to define a custom splashscreen, a placeholder that will be displayed in the first place until you think it can be swapped for the application content.
To define a splashscreen, you can call the method splashscreen_html like following:
This method accepts a string containing HTML elements that will be rendered.
Next Step:
API