How to make your flag button a different color

This works with any button:
Shift-click on the Snap! logo and choose "start developer mode".
Then click on the green flag with 2 fingers. Choose "apushbuttonmorph1".
Then choose color, and enter the color you want!
TADA!
Shift-click the logo again and turn off dev mode.
This can be done with any button, the block pallet, and more!

Few things:

  • Please recategorize your post to Tutorials (Here's how to...), as this is a tutorial.
  • I'm sure "start developer mode" is labeled as "switch to dev mode".
  • Usually, a 2-finger tap on a touchpad is equivalent to a right-click.
  • Lastly, it only affects one session. Restarting Snap! will clear changes.

You discovered dev mode!

I did not know they had that section!
Also, I know it only lasts one session.
Scratch used to have a "save image for end user" option that Snap! does not have :frowning:

what?

This option would save any changes made in Scratch so that the next time you open it you see the developer changes you made. Scratch is no longer made in Squeak, so the option to change classes (the way Squeak has property's) and morphs is not an option (no dev mode)
(This was Scratch 1.0 to 1.4, 2.0 was in flash and 3.0 was in JavaScript)

I thought for a second that you were talking about images or element/morph pictures.

I'm not, I'm talking about changing the color of existing morphs.

I was talking about the

not much changing the colors of elements though.

Oh

world.children[0].children[1].children[5].children[0].color = new Color(255, 0, 0, 1)

replace the numbers with standard rgba values. It will update upon hover

What does that have to do with anything
If you are saying to change the color, there is GUI for that, as described above.

its js code that changes the color of the flag symbol, you can put it in a userscript for something so it does it automatically

By the way, does anyone know of the function the flushes/updates the screen (or just a single morph?)

wdym by that

Oh I see
And I don't know how to do that, however that would be great.

The script changes the color of the flag but it only updates visually when it's hovered over. I'm wondering if there's a function that can programatically force it to update
There's a function for the block pallet called flush that runs whenever you edit or create a block

i think i have a script for that somewhere

Could you share?

it got deleted :confused:
im pretty sure i made a post with a code but i can't find it

nvm i found it, it's ide.refreshIDE()