| 13 | namespace tt::lvgl { |
| 14 | |
| 15 | static 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 | |
| 23 | static const _lv_font_t* getToolbarFont(UiDensity uiDensity) { |
| 24 | if (uiDensity == LVGL_UI_DENSITY_COMPACT) { |
no test coverage detected