cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
Loading...
Searching...
No Matches
ui_theme.cpp File Reference

Colours, the LVGL theme and the shared layout metrics. More...

#include "ui_internal.h"
Include dependency graph for ui_theme.cpp:

Go to the source code of this file.

Macros

#define TAB_SEG_INSET   5 /* pill inset inside the 42px bar, top+bottom */
#define TAB_SEG_GAP   4 /* gap between segments */
#define SCROLLBAR_W   4 /* hairline, not the default block */

Functions

static void theme_styles_init (void)
static void theme_apply (lv_theme_t *th, lv_obj_t *obj)
void theme_init (void)
 Install the theme. After lv_disp_drv_register(), before any object.

Variables

static lv_theme_t s_theme
static lv_style_t s_st_tabbar
static lv_style_t s_st_tab
static lv_style_t s_st_tab_sel
static lv_style_t s_st_tabview
static lv_style_t s_st_scrollbar
static lv_style_t s_st_track
static lv_style_t s_st_ink
static lv_style_t s_st_field
static lv_style_t s_st_key

Detailed Description

Colours, the LVGL theme and the shared layout metrics.

Definition in file ui_theme.cpp.

Macro Definition Documentation

◆ SCROLLBAR_W

#define SCROLLBAR_W   4 /* hairline, not the default block */

Definition at line 26 of file ui_theme.cpp.

Referenced by theme_styles_init().

◆ TAB_SEG_GAP

#define TAB_SEG_GAP   4 /* gap between segments */

Definition at line 25 of file ui_theme.cpp.

Referenced by theme_styles_init().

◆ TAB_SEG_INSET

#define TAB_SEG_INSET   5 /* pill inset inside the 42px bar, top+bottom */

Definition at line 24 of file ui_theme.cpp.

Referenced by theme_styles_init().

Function Documentation

◆ theme_apply()

void theme_apply ( lv_theme_t * th,
lv_obj_t * obj )
static

Definition at line 111 of file ui_theme.cpp.

References s_st_field, s_st_ink, s_st_key, s_st_scrollbar, s_st_tab, s_st_tab_sel, s_st_tabbar, s_st_tabview, and s_st_track.

Referenced by theme_init().

◆ theme_init()

void theme_init ( void )

Install the theme. After lv_disp_drv_register(), before any object.

Copied from the active theme and parented to it, so the default styling still runs first and this only adds on top.

Definition at line 157 of file ui_theme.cpp.

References font_inter_14, s_theme, theme_apply(), and theme_styles_init().

Referenced by ui_task().

◆ theme_styles_init()

Variable Documentation

◆ s_st_field

lv_style_t s_st_field
static

Definition at line 36 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_ink

lv_style_t s_st_ink
static

Definition at line 35 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_key

lv_style_t s_st_key
static

Definition at line 37 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_scrollbar

lv_style_t s_st_scrollbar
static

Definition at line 33 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_tab

lv_style_t s_st_tab
static

Definition at line 30 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_tab_sel

lv_style_t s_st_tab_sel
static

Definition at line 31 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_tabbar

lv_style_t s_st_tabbar
static

Definition at line 29 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_tabview

lv_style_t s_st_tabview
static

Definition at line 32 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_st_track

lv_style_t s_st_track
static

Definition at line 34 of file ui_theme.cpp.

Referenced by theme_apply(), and theme_styles_init().

◆ s_theme

lv_theme_t s_theme
static

Definition at line 28 of file ui_theme.cpp.

Referenced by theme_init().