Skip to content

How to change between 3 different background colours with initButtonUL #29

Description

@Greece2

Hi there,
I possibly missed something in the examples or just couldn't find it in any of the descriptions.
initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_BLACK, TFT_GREEN, "Action", 1);
sets a white outline, black as background and green when the button is active.
drawSmoothButton(true);
drawSmoothButton(false);
changes between black and green. Correct ?
At least it seems to work that way.

What I now would like to do is to have a different, second "active" colour . I.e. green when the triggered
action was successful and red when it wasn't successful.

As I said, possibly very simply and obvious to everyone but me ;-)

Thanks !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions