Files
trail-mate/modules/ui_shared/tests/test_tdisplayp4_menu_profile.cpp
T
liu weikai c44d8e740e Finish T-Display-P4 adaptation and C6 checks
Add the tdisplayp4_touch UX pack, full ESP32P4 page/profile coverage, and IDF-safe runtime fallbacks.

Wire the ESP-IDF app catalog/source list for the adapted pages and add C6 companion tm_services functional smoke coverage.
2026-06-13 11:18:37 +08:00

35 lines
956 B
C++

#include "ui/menu/menu_profile.h"
#include <cassert>
#include <cstring>
const lv_font_t lv_font_montserrat_10{};
const lv_font_t lv_font_montserrat_12{};
const lv_font_t lv_font_montserrat_14{};
const lv_font_t lv_font_montserrat_16{};
lv_coord_t lv_display_get_physical_horizontal_resolution(lv_display_t*)
{
return 720;
}
lv_coord_t lv_display_get_physical_vertical_resolution(lv_display_t*)
{
return 720;
}
int main()
{
const auto& profile = ui::menu_profile::current();
assert(std::strcmp(profile.name, "tdisplayp4") == 0);
assert(profile.variant == ui::menu_profile::LayoutVariant::LargeTouchGrid);
assert(profile.input_mode == ui::menu_profile::InputMode::TouchPrimary);
assert(profile.large_touch_hitbox);
assert(profile.show_top_bar);
assert(profile.max_columns == 4);
assert(profile.card_width == 104);
assert(profile.card_height == 112);
assert(profile.grid_top_offset == 52);
return 0;
}