update firmware source code to v0.18 (#9)

This commit is contained in:
Forairaaaaa
2026-03-25 11:11:14 +08:00
committed by GitHub
parent 5001b7081b
commit 605b575fcc
123 changed files with 24590 additions and 1899 deletions
+4 -3
View File
@@ -12,11 +12,12 @@ SelectMenuPage::SelectMenuPage(std::vector<MenuSection> sections) : _sections(st
{
_pannel = std::make_unique<uitk::lvgl_cpp::Container>(lv_screen_active());
_pannel->setSize(320, 240);
_pannel->setBgColor(lv_color_hex(0xffffff));
_pannel->setPadding(10, 24, 0, 0);
_pannel->setBgColor(lv_color_hex(0xEDF4FF));
_pannel->setPadding(30, 72, 0, 0);
_pannel->setBorderWidth(0);
_pannel->setRadius(0);
_pannel->setScrollDir(LV_DIR_VER);
_pannel->setScrollbarMode(LV_SCROLLBAR_MODE_ACTIVE);
int cursor_y = 10;
@@ -70,7 +71,7 @@ void SelectMenuPage::create_item_button(int y, const MenuItem& item, int section
btn->setBgColor(lv_color_hex(0xB8D3FD));
btn->setBorderWidth(0);
btn->setShadowWidth(0);
btn->setRadius(12);
btn->setRadius(18);
btn->label().setText(item.label);
btn->label().setTextFont(&lv_font_montserrat_24);