-
Notifications
You must be signed in to change notification settings - Fork 30.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
Adopt icon font in debug breakpoints and toolbar #84771
Conversation
If you checkout the branch you should have the correct files, I don't think the patch method for testing PRs works with binary files, which is why the icons don't show up. Can you try again with this method? Would love for you to stress test the breakpoint icons.
We did this with symbol icons where each symbol got a color token, not sure why it would be different here. Curious to hear what @aeschli thinks as well, I can go either way.
Actually, all of the breakpoint colors inherit from |
@misolori great for color inheritence, that makes things easier. However I am always against adding things which we are not even sure users would want. So I do not think these additional colors are needed, until people / extension authors ask for them I would not add them. I have checked out the PR branch, however your PR has a conflict and I can not build nicely. Can you please resolve the conflict (you will have to do this either way before merging in)? |
@misolori thanks for fixing the conflicts. I tried this out and this is aweosme work! I am looking forward to you merging this so I no longer have to look at the ugly red breakpoints and turn them to blue. Thanks for doing this! fyi @weinand |
Discussed this in Redmond's standup and everyone was in favor of trimming down the color tokens to single color for all breakpoints (active/red and inactive/gray). |
Great, once we have that in this PR we can merge it in. Thanks |
I've simplified the breakpoint color tokens to:
|
Related #78889
This converts all of the breakpoint and toolbar icons to use our new icon font. Nothing should be visibly different as the icons are the same.
One thing I would love to get feedback on is how I modified the
ICommandAction
to include a new option,iconClassName
, and also made theiconLocation
parameters optional as these are not needed on the icon fonts. cc @bpasero to check as well (I had to set these parameters asundefined
in theregisterDebugToolBarItem
).If you could also stress test the breakpoints, I used the mock debug/extension debuggers to ensure everything was accurate to stable.
We also introduce a new set of icon color tokens:
debugIcon.breakpointForeground
debugIcon.breakpointDisabledForeground
debugIcon.breakpointUnverifiedForeground
debugIcon.breakpointStackframeForeground
debugIcon.breakpointStackframeFocusedForeground
debugIcon.stepBackForeground
And when configured you can get something like:
cc @aeschli for icon color token names