Make LIME and LIME the same colour

Description

I am using LIME twice but they show differently

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

Simulator

What LVGL version are you using?

8.1

What do you want to achieve?

I want the same colour in the table as the header

What have you tried so far?

Setting the colour

Code to reproduce

    lv_obj_set_style_text_color(lblTime, lv_palette_main(LV_PALETTE_LIME), LV_PART_MAIN);

and

        if(lv_table_has_cell_ctrl(obj, row, col, LV_TABLE_CELL_CTRL_CUSTOM_1)) {
            //Green
            printf("Set colour 1\n");
            dsc->label_dsc->color = lv_palette_main(LV_PALETTE_LIME);
        }

Screenshot and/or video

Same goes for cyan:

@kisvegabor any ideas?

Thanks!

The colors should look like these: Material color palette ā€” Vuetify

So for lime the clock seems incorrect.

Does it make any difference if you remove
lv_obj_set_style_text_color(lblTime, lv_palette_main(LV_PALETTE_LIME), LV_PART_MAIN);?

I believe the the color of the label is overwritten somewhere to pure green (0x00ff00).

Oh, wow. Its always looked like this for me using lime, here is 7.5:


and
image

Sorry, Iā€™m an idiot!

I was using a recolor set to 00ff00ā€¦

How can I set the table cell to this color?

Thanks!

Found it:

lv_color_hex(0x00ff00)

1 Like