TB2026-YDS Firmware
Loading...
Searching...
No Matches
settings_screen.c File Reference

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_tsettings_screen (void)
 Get the singleton Settings screen, ready to push onto the navigator.

Detailed Description

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.

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Macro Definition Documentation

◆ MENU_ARROW_X

#define MENU_ARROW_X   2

◆ MENU_ICON_X

#define MENU_ICON_X   18

◆ MENU_ROW_H

#define MENU_ROW_H   40 /* 160px content / 4 items = 40px even slices */

◆ MENU_SCALE

#define MENU_SCALE   2

◆ MENU_TEXT_X

#define MENU_TEXT_X   40

◆ MENU_Y0

#define MENU_Y0   (STATUS_BAR_H + 12) /* symmetric top/bottom margins */

◆ N_ITEMS

#define N_ITEMS   4

Function Documentation

◆ settings_screen()

screen_t * settings_screen ( void )

Get the singleton Settings screen, ready to push onto the navigator.

Returns
Pointer to the Settings screen.