How do I change Button background colour?

Hi,

I’m trying to make a button “yes” or “no” for a timetable. So it displays as gray if “false” and displays as blue if “true”. However it is not changing colour once pressed even though the string is set to “#4A90E2” in the blocks. Am I adding the number Hex wrong?

Blocks

Design

Hey Terry,

I don’t think you can pass hex like this to a color block.

You can use one of the built-in colors like this:

00

Or specify the RBG values like this.

15

Ok great, got it setup like this

1 Like

Why don’t you go to check “4a90e2” rgb color?