From eac6c39301797684025cbf292fe48c24025c99ad Mon Sep 17 00:00:00 2001 From: H4W9 Date: Fri, 6 Mar 2026 21:16:52 -0600 Subject: [PATCH] Update MenuFunctions.cpp Set Icon for Settings and Brightness --- esp32_marauder/MenuFunctions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esp32_marauder/MenuFunctions.cpp b/esp32_marauder/MenuFunctions.cpp index 7fe777a..ed5d620 100644 --- a/esp32_marauder/MenuFunctions.cpp +++ b/esp32_marauder/MenuFunctions.cpp @@ -2872,7 +2872,7 @@ void MenuFunctions::RunSetup() }); for (int i = 0; i < settings_obj.getNumberSettings(); i++) { if (this->callSetting(settings_obj.setting_index_to_name(i)) == "bool") - this->addNodes(&settingsMenu, settings_obj.setting_index_to_name(i), TFTLIGHTGREY, NULL, 0, [this, i]() { + this->addNodes(&settingsMenu, settings_obj.setting_index_to_name(i), TFTLIGHTGREY, NULL, SETTINGS, [this, i]() { settings_obj.toggleSetting(settings_obj.setting_index_to_name(i)); this->callSetting(settings_obj.setting_index_to_name(i)); this->changeMenu(&specSettingMenu, true); @@ -2887,7 +2887,7 @@ void MenuFunctions::RunSetup() // Specific setting menu specSettingMenu.parentMenu = &settingsMenu; - addNodes(&specSettingMenu, text09, TFTLIGHTGREY, NULL, 0, [this]() { + addNodes(&specSettingMenu, text09, TFTLIGHTGREY, NULL, BRIGHTNESS, [this]() { this->changeMenu(specSettingMenu.parentMenu, true); }); @@ -3821,3 +3821,4 @@ void MenuFunctions::displayCurrentMenu(int start_index) #endif +