-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Error indicators in project panel should use different border for selected files #20572
Comments
I can change that later today if this is not intentional? |
I think it doesn't look good, but I'd prefer to hear @danilo-leal's opinion on it |
You're referring to the white stroke around the x, right? If that's the case, this is a bit challenging at the moment because these different states in the project panel items (like hover or selection) use colors that leverage opacity, whereas the diagnostic icon uses a solid color. If we use exactly the same token as we use for the states, the knockout effect wouldn't quite work. That original PR was merged because I think we're in a good spot with icon positioning, API to do the icon knockout effect, and, generally, the functionality. But there's still room to make this perfect, which includes possibly refining the color tokens we use for project panel items, ensuring the knockout thing always works well. Does this make sense? |
We can yeah, but it's what I said—other states of the project panel item use transparent colors, which means the icon stroke wouldn't blend perfectly as they do in the resting/default state. The solution seems to be not in the color used by the icon, but rather in the color token itself. |
Yeah, makes sense |
@danilo-leal I did not understand this completely so I might be missing something, but I played around a little and I think zed/crates/project_panel/src/project_panel.rs Lines 2808 to 2812 in 093c9cc
zed/crates/project_panel/src/project_panel.rs Lines 254 to 264 in 093c9cc
For hovering we could use Would this work or am I missing something? |
I think this works pretty well. I'm going to create a PR for this tmr. I think we should fix this before #18182 makes it into the normal release. |
Check for existing issues
Describe the bug / provide steps to reproduce it
In #18182 error indicators were added. For the selected file, the border used for the error icon is of an incorrect color
Environment
Zed: v0.162.0 (Zed Nightly 55cd99c)
OS: macOS 15.1.0
Memory: 8 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: