mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-19 01:56:19 +00:00
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.
35 lines
956 B
C++
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;
|
|
}
|