* Initial work on splitting notification renderer into components for reuse * More progress * Fix notification popup * more fix, less crash * Adjustments for OLED on keeping menus tidy, added Bluetooth Toggle to Home frame. Also widen the frame slightly if you have a scroll bar * Small changes for EInk to not crowd elements * Change System frame menu over to better match actions; added color picker for T114 * Fix build errors and add T190 for testing * Logic gates are hard sometimes * Screen Color Picker changes, defined Yellow as a Color. * Additional colors and tuning * Abandon std::sort in NodeDB, and associated fixes (#7175) * Generate short name for nodes that don't have user yet * Add reboot menu * Sort fixes * noop sort option to avoid infinite loop * Refactor Overlay Banner * Continuing work on Color Picker * Add BaseUI menus to add and remove Favorited Nodes * Create TFT_MESH_OVERRIDE for variants.h and defined colors * Trigger a NodeStatus update at the end of setup() to get fresh data on display at boot. * T114 defaults to White, Yellow is now bright Yellow * Revert "T114 defaults to White, Yellow is now bright Yellow" This reverts commit 8d05e17f11eb48c42460176317893a50abd2eeb2. * Only show OEM text if not OLED * Adjust OEM logo to maximize visible area * Start plumbing in Color Picker changes * Finished plumbing * Fix warning * Revert "Fix warning" This reverts commit 2e8aecd52d6f5b9058e0bde09b72ece43a5f3a48. * Fix display not fully redrawing * T-Deck should get color too * Emote Revamp * Update emotes.cpp * Poo Emote fix * Trunk fix * Add secret test menu and number picker * Missed bits * Save colors between reboots * Save Clock Face election to protobuf * Make reboot first, then settings * Add padding for single line pop-ups * Compass saving and faster menus * Resolve build issue with Excluding GPS * Resolve issue with memory bars on EInk * Add brightness settings for supported screen (#7182) * Add brightness menu. * add loop destination selection. * Bring back color (and sanity) to the menus! * Trunk --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Jason P <applewiz@mac.com> Co-authored-by: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Co-authored-by: Wilson <m.tools@qq.com>
59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
#include "configuration.h"
|
|
namespace graphics
|
|
{
|
|
|
|
class menuHandler
|
|
{
|
|
public:
|
|
enum screenMenus {
|
|
menu_none,
|
|
lora_picker,
|
|
TZ_picker,
|
|
twelve_hour_picker,
|
|
clock_face_picker,
|
|
clock_menu,
|
|
position_base_menu,
|
|
#if !MESHTASTIC_EXCLUDE_GPS
|
|
gps_toggle_menu,
|
|
#endif
|
|
compass_point_north_menu,
|
|
reset_node_db_menu,
|
|
buzzermodemenupicker,
|
|
mui_picker,
|
|
tftcolormenupicker,
|
|
brightness_picker,
|
|
reboot_menu,
|
|
add_favorite,
|
|
remove_favorite,
|
|
test_menu,
|
|
number_test
|
|
};
|
|
static screenMenus menuQueue;
|
|
|
|
static void LoraRegionPicker(uint32_t duration = 30000);
|
|
static void handleMenuSwitch(OLEDDisplay *display);
|
|
static void clockMenu();
|
|
static void TZPicker();
|
|
static void TwelveHourPicker();
|
|
static void ClockFacePicker();
|
|
static void messageResponseMenu();
|
|
static void homeBaseMenu();
|
|
static void systemBaseMenu();
|
|
static void favoriteBaseMenu();
|
|
static void positionBaseMenu();
|
|
static void compassNorthMenu();
|
|
static void GPSToggleMenu();
|
|
static void BuzzerModeMenu();
|
|
static void switchToMUIMenu();
|
|
static void TFTColorPickerMenu(OLEDDisplay *display);
|
|
static void nodeListMenu();
|
|
static void resetNodeDBMenu();
|
|
static void BrightnessPickerMenu();
|
|
static void rebootMenu();
|
|
static void addFavoriteMenu();
|
|
static void removeFavoriteMenu();
|
|
static void testMenu();
|
|
static void numberTest();
|
|
};
|
|
|
|
} // namespace graphics
|