|
TB2026-YDS Firmware
|
Settings menu (top-level): a list over the four settings sub-screens. More...
#include "settings_screen.h"#include "bluetooth_settings.h"#include "audio_settings.h"#include "screen_settings.h"#include "power_settings.h"#include "navigator.h"#include "status_bar.h"#include "gfx.h"#include "icons.h"Macros | |
| #define | N_ITEMS 4 |
| #define | MENU_ROW_H 40 /* 160px content / 4 items = 40px even slices */ |
| #define | MENU_Y0 (STATUS_BAR_H + 12) /* symmetric top/bottom margins */ |
| #define | MENU_ARROW_X 2 |
| #define | MENU_ICON_X 18 |
| #define | MENU_TEXT_X 40 |
| #define | MENU_SCALE 2 |
Functions | |
| screen_t * | settings_screen (void) |
| Get the singleton Settings screen, ready to push onto the navigator. | |
Settings menu (top-level): a list over the four settings sub-screens.
Same shape as the statistics menu: content offset below the status bar, and a sober ">" caret marks the selected row (no full white bar, which on this passive OLED lights OFF pixels across the line; see root_menu's note). The sub-screen pointers aren't compile-time constants, so they are seeded on first use.
| #define MENU_ARROW_X 2 |
| #define MENU_ICON_X 18 |
| #define MENU_ROW_H 40 /* 160px content / 4 items = 40px even slices */ |
| #define MENU_SCALE 2 |
| #define MENU_TEXT_X 40 |
| #define MENU_Y0 (STATUS_BAR_H + 12) /* symmetric top/bottom margins */ |
| #define N_ITEMS 4 |
| screen_t * settings_screen | ( | void | ) |
Get the singleton Settings screen, ready to push onto the navigator.