Skip to content

[LVGL] Includes added by LVGL_STYLES_DEF in the styles source file do not automatically match the changed header filenames #992

Description

@tommikulevich

Bug description

Last time I created a project in which I added prefix ui_ in the name of each file and change the templates in the "Settings -> Build -> Files" tab accordingly. After the generation of the code there was one include to the no longer existing file styles.h (should beui_styles.h) in ui_styles.c. Of course, I can change this manually, but I wanted to automate it and when generating a new UI not have to do it every time or create scripts.

To Reproduce

Steps to reproduce the behavior:

  1. Create the new LVGL project, e.g. LVGL -> Scale
  2. Go to 'Settings -> Build -> Files'
  3. Add prefix ui_ to all file names except ui.h / ui.c, e.g. change styles.h to ui_styles.h
  4. Change all file templates accordingly, e.g. change #include "vars.h" to #include "ui_vars.h" in ui_structs.h
  5. Build the project
  6. See wrong import #include "styles.h" in generated ui_styles.c

Expected behavior

Line #include "ui_styles.h" in generated ui_styles.c instead of #include "styles.h".

Screenshots

Renamed files:
Image

Template ui_styles.c:
Image

Wrong include after building:
Image

Desktop:

  • OS: Ubuntu Linux
  • Version: 25.10

LVGL version (if used)

  • 9.4.0

Additional context

Before I added the first style it was all OK because I could remove the line //${eez-studio LVGL_STYLES_DEF} from the styles.c template or even turn off "Styles", but now it's not a solution.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions