What MCU/Processor/Board and compiler are you using?
STM32F767, custom board
What LVGL version are you using?
What do you want to achieve?
I created the window header button by using
That color was gray, so I’ve tried to change the color to black but I failed.
I just could change the size of that.
What have you tried so far?
- lv_style_set_text_color(&style_headerfont, LV_STATE_DEFAULT, LV_COLOR_BLACK);
- lv_obj_set_style_local_bg_color(btn_Settings, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
lv_style_init(&style_headerfont); lv_style_set_text_font(&style_headerfont, LV_STATE_DEFAULT, &lv_font_montserrat_24); lv_style_set_text_color(&style_headerfont, LV_STATE_DEFAULT, LV_COLOR_BLACK);
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.