Skip to content

Make color definitions more global in source code  #559

Open
@drzacek

Description

@drzacek

I'm not sure this is the right place to bring such stuff, if not then sorry.

I've been trying to change the colors for the notification app today (not really a fan of the original), and I noticed that there are many defines such LV_COLOR_ORANGE in many places, or sometimes even lv_color_hex(0x888888). So if you want to change colors for whole screen, you need to find all occurrences and replace them with new color.

I think if we had some global defines in separate header file, with more user-(programmer-)friendly names, like LV_COLOR_BG_CLOCKAPP, LV_COLOR_TEXT_NOTIFICATIONTITLE or something, with LV_COLOR_RED/BLUE/something assigned to it, managing themes would become way easier.
Creators of new watchfaces/themes would just have to work with single .h file and it all would become a bit more readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    question/discussionThis is just a question, for ex. not an issue or a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions