add quick open/input color registers #74041
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal of this PR is to extract the color registration for the quick opener/quick input so that it can be styled separately from the Sidebar.
Currently, it's pulling whatever styles are create on the sidebar for foreground and background. This isn't intuitive for theme developers (personally, I struggled to remember which register to use and I only figured it out because of others having the same experience and discussing on Stack Overflow). It's also limiting in that it forces theme developers into making a decision about both the sidebar and the quick picker.
I want to propose registering two new color selectors:
"quickOpen.background"
"quickOpen.foreground"
Here's an example after running
./scripts/code.sh
onmaster
and the PR branch.Before (
![image](https://user-images.githubusercontent.com/1024544/58073729-3d761c80-7b58-11e9-9c34-3e97d5378e7c.png)
master
):After (
![image](https://user-images.githubusercontent.com/1024544/58073660-0f90d800-7b58-11e9-8b11-ec21129b9579.png)
freeQuickPickerColors
, in my theme I set the background color to a darker black fo the"quickOpen.background"
and left"sideBar.background"
the same):