feat(ui): converge shared map viewport and localization contracts

This commit is contained in:
liu weikai
2026-04-22 22:10:45 +08:00
parent c4b763d2ea
commit c4e300a57f
41 changed files with 5776 additions and 1340 deletions
@@ -9,14 +9,14 @@
#include "chat/domain/contact_types.h"
#include "lvgl.h"
#include "ui/widgets/map/map_viewport.h"
namespace node_info
{
namespace ui
{
static constexpr std::size_t kNodeInfoTileCount = 9;
static constexpr std::size_t kNodeInfoInfoLineCount = 8;
static constexpr std::size_t kNodeInfoInfoLineCount = 4;
struct NodeInfoWidgets
{
@@ -31,8 +31,8 @@ struct NodeInfoWidgets
lv_obj_t* map_stage = nullptr;
lv_obj_t* tile_layer = nullptr;
lv_obj_t* left_scrim = nullptr;
lv_obj_t* right_scrim = nullptr;
lv_obj_t* map_overlay_layer = nullptr;
lv_obj_t* map_gesture_surface = nullptr;
lv_obj_t* id_label = nullptr;
lv_obj_t* lon_label = nullptr;
@@ -50,9 +50,13 @@ struct NodeInfoWidgets
lv_obj_t* zoom_out_btn = nullptr;
lv_obj_t* zoom_in_label = nullptr;
lv_obj_t* zoom_out_label = nullptr;
lv_obj_t* info_panel = nullptr;
lv_obj_t* zoom_status_label = nullptr;
lv_obj_t* layer_btn = nullptr;
lv_obj_t* layer_label = nullptr;
lv_obj_t* tile_images[kNodeInfoTileCount]{};
lv_obj_t* info_labels[kNodeInfoInfoLineCount]{};
::ui::widgets::map::Widgets map_viewport{};
};
/**