How to set text color of menu page title?

Description

Hi,

I’m wondering if it’s possible to change the color of the title of a menu page?

Thanks :slight_smile:

What MCU/Processor/Board and compiler are you using?

ESP32-S3

What LVGL version are you using?

v8.3.1

What do you want to achieve?

Change the color of a menu page’s title

What have you tried so far?

I’ve tried setting the page’s style’s text color, but that doesn’t seem to work (the color of the “Settings” text remains a default dark-grey color).

lv_style_t main_page_style;
lv_style_init(&main_page_style);
lv_style_set_bg_color(&main_page_style, lv_color_make(0, 0, 0));
lv_style_set_text_color(&main_page_style, lv_color_make(255, 255, 255));

...

lv_obj_t *main_page;
main_page = lv_menu_page_create(menu, "Settings");
lv_obj_add_style(main_page, &main_page_style, LV_STATE_DEFAULT);