SayoriOS  0.3.3
tui.h
1 #pragma once
2 
3 #define TUI_DEFAULT 0
4 #define TUI_ERROR_BOX 1
5 #define TUI_MENU_BOX 2
6 
7 #define TUI_BASE_COLOR_HEAD 0xBABABA
8 #define TUI_BASE_COLOR_BODY 0xD6D2D0
9 #define TUI_BASE_COLOR_MAIN 0xFFFFFF
10 #define TUI_BASE_COLOR_ITEM 0x43ACE8
11 #define TUI_BASE_COLOR_FOOT 0xBABABA
12 #define TUI_BASE_COLOR_ERROR 0x8B4444
13 
14 #define TUI_TEXT_COLOR_HEAD 0x000000
15 #define TUI_TEXT_COLOR_BODY 0x000000
16 #define TUI_TEXT_COLOR_ITEM 0xFFFFFF
17 #define TUI_TEXT_COLOR_FOOT 0x000000
18 #define TUI_TEXT_COLOR_ERROR 0xEBE7E7
19 
20 typedef struct s_tui_theme {
21  uint32_t BASE_COLOR_HEAD;
22  uint32_t BASE_COLOR_BODY;
23  uint32_t BASE_COLOR_MAIN;
24  uint32_t BASE_COLOR_ITEM;
25  uint32_t BASE_COLOR_FOOT;
26  uint32_t BASE_COLOR_ERROR;
27  uint32_t TEXT_COLOR_HEAD;
28  uint32_t TEXT_COLOR_BODY;
29  uint32_t TEXT_COLOR_ITEM;
30  uint32_t TEXT_COLOR_FOOT;
31  uint32_t TEXT_COLOR_ERROR;
32 } ThemeTUI;
33 
34 typedef struct s_tui_item {
35  uint32_t id; // Позиция
36  char* name; // Наименование пункта
37  bool disabled; // Выключен ли?
38  char* key; // Ключ, если требуется
39  char* value; // Данные, если требуется
40 } ItemTUI;
Definition: tui.h:34