Add model notes icon

This commit is contained in:
Peter Feerick
2021-07-31 12:28:31 +02:00
committed by Raphael Coeffic
parent eb34c9de22
commit 4ec62d71b6
5 changed files with 6 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

+1
View File
@@ -47,6 +47,7 @@ enum MenuIcons {
ICON_MODEL_FLIGHT_MODES,
ICON_MODEL_INPUTS,
ICON_MODEL_MIXER,
ICON_MODEL_NOTES,
ICON_MODEL_OUTPUTS,
ICON_MODEL_CURVES,
ICON_MODEL_GVARS,
@@ -16,6 +16,9 @@ const uint8_t mask_currentmenu_shadow[] = {
const uint8_t mask_menu_model[] = {
#include "mask_menu_model.lbm"
};
const uint8_t mask_menu_notes[] = {
#include "mask_menu_notes.lbm"
};
const uint8_t mask_menu_radio[] = {
#include "mask_menu_radio.lbm"
};
@@ -143,6 +143,7 @@ class Theme480: public OpenTxTheme
loadMenuIcon(ICON_MODEL_FLIGHT_MODES, mask_model_flight_modes);
loadMenuIcon(ICON_MODEL_INPUTS, mask_model_inputs);
loadMenuIcon(ICON_MODEL_MIXER, mask_model_mixer);
loadMenuIcon(ICON_MODEL_NOTES, mask_menu_notes);
loadMenuIcon(ICON_MODEL_OUTPUTS, mask_model_outputs);
loadMenuIcon(ICON_MODEL_CURVES, mask_model_curves);
loadMenuIcon(ICON_MODEL_GVARS, mask_model_gvars);
+1 -1
View File
@@ -60,7 +60,7 @@ ViewMainMenu::ViewMainMenu(Window* parent) :
});
if (modelHasNotes()) {
carousel->addButton(ICON_MODEL, "Model\nNotes", [=]() -> uint8_t {
carousel->addButton(ICON_MODEL_NOTES, "Model\nNotes", [=]() -> uint8_t {
deleteLater();
readModelNotes();
return 0;