Skip to content

Change Message Count Color - #1914

Closed
williamhorning wants to merge 15 commits into
ScratchAddons:masterfrom
williamhorning:badge
Closed

Change Message Count Color#1914
williamhorning wants to merge 15 commits into
ScratchAddons:masterfrom
williamhorning:badge

Conversation

@williamhorning

@williamhorning williamhorning commented Mar 19, 2021

Copy link
Copy Markdown
Contributor

Resolves

image

Changes

Change the badge color to a dark orange

Reason for changes

Made so I can see it better

Tests

It works
image

@retronbv

Copy link
Copy Markdown
Contributor

darn it i wanted to find it so bad lmao

@retronbv

Copy link
Copy Markdown
Contributor

how does it look in light mode?

@williamhorning

Copy link
Copy Markdown
Contributor Author

how does it look in light mode?

still the same
image

@retronbv

Copy link
Copy Markdown
Contributor

how does it look in light mode?

still the same
image

no, you dont understand..... how does it look in browser light mode???
image

@Endermaster3690

Copy link
Copy Markdown

what about the scratch color too?

@mxmou

mxmou commented Mar 19, 2021

Copy link
Copy Markdown
Member

image

This color is a bit ugly - could you use dark green instead?

@williamhorning

Copy link
Copy Markdown
Contributor Author

snipped
no, you dont understand..... how does it look in browser light mode???
image

image

image

This color is a bit ugly - could you use dark green instead?

I could, should I use a color like the Github comment button?

wgyt and others added 3 commits March 19, 2021 06:33
Co-authored-by: scratchaddons-bot[bot] <73682299+scratchaddons-bot[bot]@users.noreply.github.com>
* Fix lint error in 2d-color-picker

* editor-devtools: fix capitalization

* editor-devtools: do not show send to top in sounds
@cobaltt7

Copy link
Copy Markdown
Contributor

why did you merge other prs into this one

make a new pr

p.s. maybe a setting on the addon to choose a color?

@WorldLanguages

Copy link
Copy Markdown
Member

Note: this green was the same one used by Scratch Messaging Extension

@williamhorning

Copy link
Copy Markdown
Contributor Author

why did you merge other prs into this one

make a new pr

p.s. maybe a setting on the addon to choose a color?

I didn't. I was just keeping this branch up to date with master
p.s. I guess I could? I probally won't tho.

@WorldLanguages

Copy link
Copy Markdown
Member

PR is now ok, but why this color exactly?

@mxmou

mxmou commented Mar 22, 2021

Copy link
Copy Markdown
Member

PR is now ok, but why this color exactly?

Maybe #008000 could be used instead, because it's already used to display the user's own username in comments.

@williamhorning

Copy link
Copy Markdown
Contributor Author

PR is now ok, but why this color exactly?

I can read it.

Maybe #008000 could be used instead, because it's already used to display the user's own username in comments.

That's a good idea.

@TheColaber

TheColaber commented Mar 25, 2021

Copy link
Copy Markdown
Member

Feel like this could be a setting... in more settings... Tbh, I don't mind the current green, but I understand if it's hard to read for others.

ps... this branch is from the world-languages org??? lol

@williamhorning

Copy link
Copy Markdown
Contributor Author

Feel like this could be a setting... in more settings... Tbh, I don't mind the current green, but I understand if it's hard to read for others.

ps... this branch is from the world-languages org??? lol

I should do that soon, but I'm in school right now.

ps... yes lol

@williamhorning

williamhorning commented Mar 25, 2021

Copy link
Copy Markdown
Contributor Author

I just added the option to change the color, can someone test it?


if this is merged, can I be invited to the org?

@mxmou

mxmou commented Mar 25, 2021

Copy link
Copy Markdown
Member

if this is merged, can I be invited to the org?

See #1183 (comment)

@TheColaber

Copy link
Copy Markdown
Member

With the current way you are doing this... if we have any more addons that have badges, they would also need that setting... is that how it should be done?

@williamhorning

Copy link
Copy Markdown
Contributor Author

With the current way you are doing this... if we have any more addons that have badges, they would also need that setting... is that how it should be done?

I guess this could be a Scratch Addon wide setting, but no addons other then this one use it so 🤷🏻‍♂️

@williamhorning

Copy link
Copy Markdown
Contributor Author

With the current way you are doing this... if we have any more addons that have badges, they would also need that setting... is that how it should be done?

#10 would need this to be made part of core

@cobaltt7

cobaltt7 commented Apr 5, 2021

Copy link
Copy Markdown
Contributor

I think that this we shouldn't need to bother about moving it to more settings until #10 is implemented.

@TheColaber TheColaber added the status: pending A PR is still not ready to merge, or an issue is being worked on/on consideration label Apr 22, 2021
@TheColaber

Copy link
Copy Markdown
Member

This is ok as a temporary solution to just having one single addon using the badge. But I see 2 problems with this PR:

  1. The default color should be the current, just so current users don't complain and might not find the new setting. Honestly, I can read white on green.
  2. You update the color every 2500 milliseconds. Please use a listener so it updates faster.

If we could first implement another addon that may as well want to use the badge, we can flesh out the details like if all addons should have the same badge color, and how should we decide which get prio, etc.

@williamhorning

Copy link
Copy Markdown
Contributor Author

This is ok as a temporary solution to just having one single addon using the badge. But I see 2 problems with this PR:

  1. The default color should be the current, just so current users don't complain and might not find the new setting. Honestly, I can read white on green.

I guess, but what is the default hex right now?

  1. You update the color every 2500 milliseconds. Please use a listener so it updates faster.

Time to figure out what a listener is, while I'm in class :|

If we could first implement another addon that may as well want to use the badge, we can flesh out the details like if all addons should have the same badge color, and how should we decide which get prio, etc.

I don't want to deal with this until #10 is done

@TheColaber

Copy link
Copy Markdown
Member

#8ce68c, addon.settings.addEventListener("change", callback)

> The default color should be the current, just so current users don't complain and might not find the new setting. Honestly, I can read white on green.
@williamhorning

Copy link
Copy Markdown
Contributor Author

#8ce68c, addon.settings.addEventListener("change", callback)

Ok, all I need to do is figure out the callback, but I'll do that on my lunch break (1 hour from now)

> 2. You update the color every 2500 milliseconds. Please use a listener so it updates faster.
@williamhorning

Copy link
Copy Markdown
Contributor Author

@TheColaber I added what you asked, could you test it?

Comment thread addons/msg-count-badge/background.js Outdated
@mxmou

mxmou commented Apr 29, 2021

Copy link
Copy Markdown
Member

The default color should be the current, just so current users don't complain and might not find the new setting. Honestly, I can read white on green.

You can, but not everyone can. Unlike Firefox, Chrome always uses white text on badges, and the current contrast doesn't meet any accessibility guidelines.

@williamhorning

Copy link
Copy Markdown
Contributor Author

The default color should be the current, just so current users don't complain and might not find the new setting. Honestly, I can read white on green.

You can, but not everyone can. Unlike Firefox, Chrome always uses white text on badges, and the current contrast doesn't meet any accessibility guidelines.

Can we just use a darkish blue?

@mxmou

mxmou commented Apr 29, 2021

Copy link
Copy Markdown
Member

@wgyt I would use green because the badge is already green and most users wouldn't want a completely different color.

@williamhorning

Copy link
Copy Markdown
Contributor Author

Now that we have something that works, can we merge this?

@Endermaster3690

Copy link
Copy Markdown

Now that we have something that works, can we merge this?

idk if format code with prettier is required but i think it is

@williamhorning

Copy link
Copy Markdown
Contributor Author

Now that we have something that works, can we merge this?

idk if format code with prettier is required but i think it is

it isn't. It fails ecause it doesn't have access to my fork

@WorldLanguages

Copy link
Copy Markdown
Member

Maybe #008000 could be used instead, because it's already used to display the user's own username in comments.

That green is now the default. And users can rollback easily:

image

Any suggestions for one or two more presets? Some blue shade, maybe? Pure black?

@WorldLanguages

Copy link
Copy Markdown
Member

@wgyt Whoops I can't push commits into this PR. Can you check "allow maintainers to idk what" on this PR?

@cobaltt7

cobaltt7 commented May 7, 2021 via email

Copy link
Copy Markdown
Contributor

@mxmou

mxmou commented May 7, 2021

Copy link
Copy Markdown
Member

@WorldLanguages Maybe #175ef8 (Recommended tag)?

I think the Forums tag color could be changed to match the new badge color.

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

Labels

status: pending A PR is still not ready to merge, or an issue is being worked on/on consideration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants