refactor(Style): Add font abstraction and CSS-like styling constants
This commit is contained in:
@@ -20,3 +20,22 @@
|
||||
// If using capacitive touch (e.g. FT6236), configure I2C pins here:
|
||||
// #define TOUCH_SDA 21
|
||||
// #define TOUCH_SCL 22
|
||||
|
||||
// ── Style Constants (CSS-like) ────────────────────────────────────────
|
||||
// Spacing - scaled for 320x240
|
||||
#define STYLE_SPACING_X 4
|
||||
#define STYLE_SPACING_Y 4
|
||||
#define STYLE_HEADER_HEIGHT 20
|
||||
#define STYLE_TILE_GAP 4
|
||||
#define STYLE_TILE_PADDING 6
|
||||
#define STYLE_TILE_RADIUS 4
|
||||
|
||||
// Colors
|
||||
#define STYLE_COLOR_BG TFT_BLACK
|
||||
#define STYLE_COLOR_HEADER 0x1A1A
|
||||
#define STYLE_COLOR_FG TFT_WHITE
|
||||
#define STYLE_COLOR_ALERT TFT_RED
|
||||
#define STYLE_COLOR_TILE_1 0x0280
|
||||
#define STYLE_COLOR_TILE_2 0x0400
|
||||
#define STYLE_COLOR_TILE_3 0x0440
|
||||
#define STYLE_COLOR_TILE_4 0x0100
|
||||
|
||||
Reference in New Issue
Block a user