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

Function getToolbarHeight

Tactility/Source/lvgl/Toolbar.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace tt::lvgl {
14
15static uint32_t getToolbarHeight(UiDensity uiDensity) {
16 if (uiDensity == LVGL_UI_DENSITY_COMPACT) {
17 return lvgl_get_text_font_height(FONT_SIZE_DEFAULT) * 1.4f;
18 } else {
19 return lvgl_get_text_font_height(FONT_SIZE_LARGE) * 2.2f;
20 }
21}
22
23static const _lv_font_t* getToolbarFont(UiDensity uiDensity) {
24 if (uiDensity == LVGL_UI_DENSITY_COMPACT) {

Callers 4

getActionIconPaddingFunction · 0.85
create_action_wrapperFunction · 0.85
toolbar_createFunction · 0.85

Calls 1

Tested by

no test coverage detected