mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 22:40:25 +00:00
3434305630
* Remove all icons from API * Music player: icons * Signal generator: icons * Bt hid: icons * Weather station: icons * Picopass: icons * File browser test: icons * Example images: documentation * Remove global assets header * Fix picopass Co-authored-by: あく <alleteam@gmail.com>
900 B
900 B
Application icons
To use icons, do the following:
- add a line to the application manifest:
fap_icon_assets="folder"
, wherefolder
points to the folder where your icons are located - add
#include "application_id_icons.h"
to the application code, whereapplication_id
is the appid from the manifest - every icon in the folder will be available as a
I_icon_name
variable, whereicon_name
is the name of the icon file without the extension
Example
We have an application with the following manifest:
App(
appid="example_images",
...
fap_icon_assets="images",
)
So the icons are in the images
folder and will be available in the generated example_images_icons.h
file.
The example code is located in example_images_main.c
and contains the following line:
#include "example_images_icons.h"
Image dolphin_71x25.png
is available as I_dolphin_71x25
.