MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getToolbarFont

Function getToolbarFont

Tactility/Source/lvgl/Toolbar.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23static const _lv_font_t* getToolbarFont(UiDensity uiDensity) {
24 if (uiDensity == LVGL_UI_DENSITY_COMPACT) {
25 return lvgl_get_text_font(FONT_SIZE_DEFAULT);
26 } else {
27 return lvgl_get_text_font(FONT_SIZE_LARGE);
28 }
29}
30
31static uint32_t getActionIconPadding(UiDensity uiDensity) {
32 auto toolbar_height = getToolbarHeight(uiDensity);

Callers 1

toolbar_createFunction · 0.85

Calls 1

lvgl_get_text_fontFunction · 0.85

Tested by

no test coverage detected