| 20 | static const auto LOGGER = Logger("Launcher"); |
| 21 | |
| 22 | static uint32_t getButtonPadding(UiDensity density, uint32_t buttonSize) { |
| 23 | if (density == LVGL_UI_DENSITY_COMPACT) { |
| 24 | return 0; |
| 25 | } else { |
| 26 | return buttonSize / 8; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | static int32_t computeButtonMargin(int32_t available_span, int32_t total_button_size) { |
| 31 | const int32_t usable = std::max<int32_t>(0, available_span - (3 * total_button_size)); |
no outgoing calls
no test coverage detected