- Fix glitch when turning on WiFi: It would temporarily show "No networks found" right before starting the first scan. - Fix spinner to use Assets.h - Replace statusbar battery icons - Better statusbar icon for when WiFi is on but not connected - Replace statusbar WiFi icons and Wifi Manage RSSI/lock icons - Fix for crash when timer is null in I2cScanner - Deprecate Spacer - Fixes for toolbar layout (simplified) - Improved ImageViewer app: center image and add filename text on the bottom - Add LV debug params to sdkconfig.developer - Disabled LV spinner, msgbox and window widgets. These have equivalents in Tactility.
20 lines
719 B
C++
20 lines
719 B
C++
#pragma once
|
|
|
|
#include "lvgl.h"
|
|
#include "app/AppContext.h"
|
|
|
|
namespace tt::lvgl {
|
|
|
|
#define TOOLBAR_HEIGHT 40
|
|
#define TOOLBAR_TITLE_FONT_HEIGHT 18
|
|
#define TOOLBAR_ACTION_LIMIT 4
|
|
|
|
lv_obj_t* toolbar_create(lv_obj_t* parent, const std::string& title);
|
|
lv_obj_t* toolbar_create(lv_obj_t* parent, const app::AppContext& app);
|
|
void toolbar_set_title(lv_obj_t* obj, const std::string& title);
|
|
void toolbar_set_nav_action(lv_obj_t* obj, const char* icon, lv_event_cb_t callback, void* user_data);
|
|
lv_obj_t* toolbar_add_button_action(lv_obj_t* obj, const char* icon, lv_event_cb_t callback, void* user_data);
|
|
lv_obj_t* toolbar_add_switch_action(lv_obj_t* obj);
|
|
lv_obj_t* toolbar_add_spinner_action(lv_obj_t* obj);
|
|
} // namespace
|