Scratchaddons: Add color selection settings to Scratch 2.0 -> 3.0

Created on 5 Oct 2020  Â·  15Comments  Â·  Source: ScratchAddons/ScratchAddons

This awesome addon by Maximouse can easily alter the colors of the header and the hover color and normal color of links. Please add this function into settings!

enhancement

Most helpful comment

@WorldLanguages I know that's possible now, I'm going to implement this after I finish my dark mode.

All 15 comments

I think adding this by 1.1 is appropriate.

Is it OK if this feature is only available when 2.0 → 3.0 is enabled? That way it would be much less work to implement.

@mxmou Wdym by that? Keep in mind css variables accessing addon settings does not work yet

Hmm. I didn't know that. It's likely possible to use JS vars and then set the CSS ones to that...

This is blocked by #151.

@mxmou Wdym by that? Keep in mind css variables accessing addon settings does not work yet

An userscript could set CSS variables.

@mxmou Sure, but it would be better if no js was needed for that.

@mxmou Can you confirm the state of this? You can now retrieve colors of type settings from CSS via variables. It's not documented yet, but you can see how other addons do it.

Did you guys know you can do this:
document.style.setProperty('--variable', whatever);

On Thu, Oct 22, 2020 at 3:20 PM World_Languages notifications@github.com
wrote:

@mxmou https://github.com/mxmou Can you confirm the state of this? You
can now retrieve colors of type settings from CSS via variables. It's not
documented yet, but you can see how other addons do it.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ScratchAddons/ScratchAddons/issues/415#issuecomment-714738514,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOT2P3R7WUYOLEVXM5TO43TSMCH2JANCNFSM4SE6I7FA
.

Nice try @Explosion-Scratch, yes we know and it's not needed here. Also, you forgot "documentElement", that won't work :P

@WorldLanguages I know that's possible now, I'm going to implement this after I finish my dark mode.

Nice try @Explosion-Scratch, yes we know and it's not needed here. Also, you forgot "documentElement", that won't work :P

*sigh* Just trying to help. Still learning JS lol

@WorldLanguages I know that's possible now, I'm going to implement this after I finish my dark mode.

@mxmou Anything new?

@GrahamSH-LLK I just opened the PR for dark mode (#699), so I'm probably going to do this after #700 and #701 are resolved.

@mxmou Now?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pufferfish101007 picture pufferfish101007  Â·  4Comments

GrahamSH-LLK picture GrahamSH-LLK  Â·  8Comments

WorldLanguages picture WorldLanguages  Â·  10Comments

GrahamSH-LLK picture GrahamSH-LLK  Â·  3Comments

jeffalo picture jeffalo  Â·  4Comments