atom / one-light-ui

Atom One light UI theme
MIT License
73 stars 62 forks source link

Colorize character matches in the command palette #87

Closed simurai closed 7 years ago

simurai commented 7 years ago

Before

Only happened when switching themes, see https://github.com/atom/one-light-ui/issues/70#issuecomment-261812610.

atom hl

After

screen shot 2016-11-22 at 6 53 09 pm

Fixes https://github.com/atom/one-light-ui/issues/70

jerone commented 7 years ago

Have you considered a (yellow) background-color?

thomasjo commented 7 years ago

Have you considered a (yellow) background-color?

We don't pick colors, since that breaks the whole adaptive accent scheme. The colors are always based on the syntax theme.

Using a background color would likely look really odd, especially given that font widths are not uniform, so you'd have non-uniform width "boxes" all over the place.

jerone commented 7 years ago

A yellow background-color for search results is probably used most often. Sure this can conflict with some themes, but they can always override.

We don't pick colors, since that breaks the whole adaptive accent scheme. The colors are always based on the syntax theme.

Isn't accent-color part of this theme...

I can always use my own in styles.less:

.command-palette .list-group .character-match,
.fuzzy-finder .list-group .character-match {
  background-color: #ffff22;
}
thomasjo commented 7 years ago

If you look at the stylesheet you linked more closely, you'll notice the .ui-hue() function a few lines higher up, which ends up being computed based on @syntax-background-color.

simurai commented 7 years ago

Have you considered a (yellow) background-color?

For light backgrounds that would work well. It's like those yellow markers..

screen shot 2016-11-23 at 2 31 54 pm

but yeah.. For dark maybe a bit too strong.

screen shot 2016-11-24 at 9 35 04 am

Could be faded, but that could also look too muddy?

screen shot 2016-11-24 at 9 45 15 am

Ooooor... underlines!!!

screen shot 2016-11-24 at 9 48 49 am

Hmmm.. So many options.. :see_no_evil:

simurai commented 7 years ago

ok, how about we keep the accent color so that it matches with the border color of the input. I 🎻 fiddled a bit more with the contrast.

@jerone I can always use my own in styles.less:

Yeah, feel free to customize it even further.

simurai commented 7 years ago

And while we're at it, let's also change the keybindings to:

screen shot 2016-11-24 at 3 03 42 pm