-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make locations visible (Intellij) #149
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 547bca1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The font looks a bit lighter, so it's a bit more readable in the dark theme now. Do you think it's enough? |
I like it more in the dark mode of IntelliJ, but I like it less in the light mode of VS Code, seems a bit too pale there. I'll also play around some more. My main target here is sufficient contrast between the background and the text, we can use https://webaim.org/resources/contrastchecker/ to check |
Yeah, makes sense, I'll play around with the contrast a bit and send you some screenshots. I also thought about coloring the location according to severity, e.g. dark yellow/red for warn/error. |
Nah, this ain't it either. The red color is too attention-grabbing, we don't want the path to draw attention away from the error text |
Just played around with it myself, seems like https://webaim.org/resources/contrastchecker/?fcolor=919191&bcolor=1E1E1E |
@@ -1,18 +1,19 @@ | |||
import { relative } from 'node:path' | |||
import figures from 'figures' | |||
import terminalLink from 'terminal-link' | |||
import chalk from 'chalk' | |||
import picocolors from 'picocolors' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (non-blocking): I think the convention is to import is as pc
, also helps make the code shorter
import picocolors from 'picocolors' | |
import pc from 'picocolors' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'll shorten the variable name
Yes,
I'll try to do something with |
Resolves #140
@illright
I replaced
chalk
withpinocolours
as you suggested in the issue description.Here you can compare the diagnostics (I used
dim
method)Light theme before/after:
Dark theme before/after: