Skip to content

Meter widget colors are broken #1014

@jniebuhr

Description

@jniebuhr

Describe the bug
The Meter widget produces broken code. It double wraps each of the colors in lv_color_hex.

                    state->scale->tick_color = lv_color_hex(lv_color_hex(theme_colors[theme_index][5]));
                    state->scale->tick_major_color = lv_color_hex (lv_color_hex(0x000000));

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project with meter widget
  2. Assign any colors to the ticks or scales
  3. Generate code
  4. Observe compile time error

Expected behavior
It should generated compilable code

LVGL version (if used)

  • 8.4.0

Additional context

Disclaimer
Please take into account that the tasks reported here will be processed by the Envox team according to the best effort principle, so adjust your expectations accordingly. However, if you want a more prompt and high-quality response as well as direct contact with technical support, you can choose one of our Support plans.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions