Fixes and improvements (#132)
- 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.
This commit is contained in:
committed by
GitHub
parent
b4592dd7d1
commit
f34440eb6f
@@ -1,5 +1,3 @@
|
||||
extern "C" {
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
|
||||
#include "elf_symbol.h"
|
||||
@@ -7,15 +5,20 @@ extern "C" {
|
||||
#include "app/App.h"
|
||||
#include "app/SelectionDialog.h"
|
||||
#include "lvgl/Toolbar.h"
|
||||
#include "TactilityC/lvgl/Spinner.h"
|
||||
|
||||
#include "lvgl.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
const struct esp_elfsym elf_symbols[] {
|
||||
// Tactility
|
||||
ESP_ELFSYM_EXPORT(tt_app_selectiondialog_start),
|
||||
ESP_ELFSYM_EXPORT(tt_set_app_manifest),
|
||||
ESP_ELFSYM_EXPORT(tt_lvgl_toolbar_create),
|
||||
ESP_ELFSYM_EXPORT(tt_lvgl_toolbar_create_simple),
|
||||
// tt::lvgl
|
||||
ESP_ELFSYM_EXPORT(tt_lvgl_spinner_create),
|
||||
// lv_obj
|
||||
ESP_ELFSYM_EXPORT(lv_obj_add_event_cb),
|
||||
ESP_ELFSYM_EXPORT(lv_obj_align),
|
||||
@@ -113,9 +116,6 @@ const struct esp_elfsym elf_symbols[] {
|
||||
ESP_ELFSYM_EXPORT(lv_list_add_button),
|
||||
ESP_ELFSYM_EXPORT(lv_list_get_button_text),
|
||||
ESP_ELFSYM_EXPORT(lv_list_set_button_text),
|
||||
// lv_spinner
|
||||
ESP_ELFSYM_EXPORT(lv_spinner_create),
|
||||
ESP_ELFSYM_EXPORT(lv_spinner_set_anim_params),
|
||||
// lv_textarea
|
||||
ESP_ELFSYM_EXPORT(lv_textarea_create),
|
||||
ESP_ELFSYM_EXPORT(lv_textarea_get_accepted_chars),
|
||||
@@ -139,11 +139,15 @@ void tt_init_tactility_c() {
|
||||
elf_set_custom_symbols(elf_symbols);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#else // Simulator
|
||||
|
||||
extern "C" {
|
||||
|
||||
void tt_init_tactility_c() {
|
||||
}
|
||||
|
||||
#endif // ESP_PLATFORM
|
||||
|
||||
}
|
||||
|
||||
#endif // ESP_PLATFORM
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "Spinner.h"
|
||||
#include "lvgl/Spinner.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
lv_obj_t* tt_lvgl_spinner_create(lv_obj_t* parent) {
|
||||
return tt::lvgl::spinner_create(parent);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "lvgl.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
lv_obj_t* tt_lvgl_spinner_create(lv_obj_t* parent);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user