- Improved UI/UX of various WiFi apps to make it compatible with Cardputer. - Improved UI/UX of Serial Console to make it compatible with Cardputer. - Boot app now shows a smaller logo on Cardputer - CrashDiagnostics app: Use different text if no touch screen is present
24 lines
512 B
C++
24 lines
512 B
C++
#ifdef ESP_PLATFORM
|
|
|
|
#include <Tactility/Tactility.h>
|
|
|
|
#include <lvgl.h>
|
|
|
|
extern "C" {
|
|
|
|
extern lv_obj_t* __real_lv_button_create(lv_obj_t* parent);
|
|
|
|
lv_obj_t* __wrap_lv_button_create(lv_obj_t* parent) {
|
|
auto button = __real_lv_button_create(parent);
|
|
|
|
if (tt::hal::getConfiguration()->uiScale == tt::hal::UiScale::Smallest) {
|
|
lv_obj_set_style_pad_all(button, 2, LV_STATE_DEFAULT);
|
|
lv_obj_set_style_radius(button, 3, LV_STATE_DEFAULT);
|
|
}
|
|
|
|
return button;
|
|
}
|
|
|
|
}
|
|
|
|
#endif // ESP_PLATFORM
|