mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-27 19:12:40 +00:00
update firmware source code to v0.18 (#9)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user