Skip to content
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

Support setting a badge-only color in file decorations #182098

Open
eamodio opened this issue May 10, 2023 · 10 comments
Open

Support setting a badge-only color in file decorations #182098

eamodio opened this issue May 10, 2023 · 10 comments
Assignees
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Milestone

Comments

@eamodio
Copy link
Contributor

eamodio commented May 10, 2023

Today we can provide a ThemeColor to a file decoration, but it automatically applies to the text of the file as well as the badge.

There are cases where I really want the badge to have a color, but not affect the text itself.

Here is an example from the SCM view today that has color on the badges but not the text:

image

While in GitLens I want the M to be colored like the SCM view above, but not apply the same color to the text -- which I can't do today:

image

My guess is that we don't want to add the ability to have a badgeColor, since then you could end up with different text colors and badge colors (though in some cases it would be nice, could lead to not great experiences), but rather add a colorAppliesTo property (or something similarly named) with values of all (default), text, badge.

/cc @alexr00 pinging you as I believe you are looking into badge changes for codicons in May

@alexr00
Copy link
Member

alexr00 commented May 12, 2023

We currently have the setting explorer.decorations.colors which controls whether the color is applied to just the badge or the whole text in the file explorer. We could have a setting to do the same for all extension trees.

@jrieken do you think this should be API or a setting?

@joaomoreno I think SCM is the outlier on behavior here. I couldn't find a setting for SCM that's similar to explorer.decorations.colors. Should we make the behavior consistent across all trees?

@alexr00 alexr00 assigned alexr00 and unassigned rebornix May 12, 2023
@alexr00 alexr00 added tree-views Extension tree view issues under-discussion Issue is under discussion for relevance, priority, approach labels May 12, 2023
@eamodio
Copy link
Contributor Author

eamodio commented May 12, 2023

While a setting is a nice override for users, I still think an API is better for granular control. Some decorations can warrant full color while others it becomes too distracting.

@joaomoreno
Copy link
Member

@joaomoreno I think SCM is the outlier on behavior here. I couldn't find a setting for SCM that's similar to explorer.decorations.colors. Should we make the behavior consistent across all trees?

cc @lszomoru

@eamodio
Copy link
Contributor Author

eamodio commented Jun 12, 2023

Please don't make the SCM consistent with the badge color and text color having to match -- that would make all modified files have a color and it would be like a rainbow. But at the same time having no color on the badge makes it easier to miss. IMO, the current SCM view is a better experience, and I would want THAT consistent with other views.

@alexr00
Copy link
Member

alexr00 commented Dec 13, 2023

@lramos15 and @lszomoru I am happy to make extension tree views match whichever we decide the default should be.

@alexr00 alexr00 added the feature-request Request for new features or functionality label Dec 13, 2023
@alexr00 alexr00 added this to the Backlog Candidates milestone Dec 13, 2023
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@lramos15
Copy link
Member

the current SCM view is a better experience, and I would want THAT consistent with other views.

I think this depends. I'm not sure there is a sane default here.

In the explorer, I quite like that the text is colored as well since it helps with distinguishing changed items from the rest. However, I understand in the SCM this would be super annoying as then everything would be highlighted since all files in the SCM view are changed files.

To me, the text colorization works well when you have sparse decorations sprinkled throughout a larger tree versus having every item or a majority of items in the tree decorated.

@alexr00
Copy link
Member

alexr00 commented Dec 13, 2023

@lramos15 this makes perfect sense. In that case, it should be up to the extension that provides the decoration whether everything is colored or just the badge.

@VSCodeTriageBot
Copy link
Collaborator

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@alexr00 alexr00 removed the under-discussion Issue is under discussion for relevance, priority, approach label Feb 2, 2024
@VSCodeTriageBot
Copy link
Collaborator

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
@alexr00 alexr00 modified the milestones: Backlog Candidates, Backlog Feb 12, 2024
@alexr00 alexr00 reopened this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Projects
None yet
Development

No branches or pull requests

7 participants