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

Draft: Allow to change the font, font size and line height of the sidebar. #63602

Closed
wants to merge 1 commit into from

Conversation

saighost
Copy link
Contributor

Add configuration of workbench for font.
#519

@sandy081 sandy081 assigned bpasero and unassigned sandy081 Nov 23, 2018
@bpasero bpasero added this to the Backlog milestone Nov 23, 2018
@MoOx
Copy link

MoOx commented Nov 29, 2018

Does this PR change the default values?
Could you add screenshots if anything is visible?

Copy link

@MoOx MoOx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am new to vscode codebase, but seems fine.

@saighost
Copy link
Contributor Author

saighost commented Dec 2, 2018

Could you add screenshots if anything is visible?

I set default values of font font-family form shell.css, and remove fixed font size or use 'inherit' Instead in css file of workbench.

I will add some screenshots here later.

@shirshak55
Copy link

any updates.

@kaypon
Copy link

kaypon commented Feb 6, 2019

Patiently waiting on this PR to go through! Do we have any screenshots?

Thanks for all the hard work put into this PR!

@aioue
Copy link

aioue commented Mar 12, 2019

@saighost do you think you might have time to resolve the latest conflicts, please?

The bulk of the changes are in workbench.ts which @bpasero may be able to comment-on/approve.

@bpasero
Copy link
Member

bpasero commented Mar 12, 2019

@saighost I appreciate the effort, but before you start fixing merge conflicts and/or catching up, can I ask how this PR solves the issue of elements in the UI requiring more space with a larger font compared to what we have today?

Just to give an example: today we hardcode the height of tree/list items to be 22px in height, e.g. for search view:

image

There is probably a ton more assumptions also in CSS where we set a height/width without checking for the actual font being used. This to me is the biggest challenge in providing a setting for variable font family/sizes.

@jonbp
Copy link

jonbp commented Mar 12, 2019

@bpasero At a basic level I think we'd all love the ability to set a different UI font face.

I understand that tweaking line-heights/font-sizes would be too many moving parts to think about, also this is probably already catered for with the zoom level.

In my own personal use case i don't really like the Ubuntu font on linux as the UI font, i much prefer Roboto and would like the ability to add this into the mix.

@bpasero
Copy link
Member

bpasero commented Mar 12, 2019

@saighost how can we provide a setting for the font without solving the issue of hardcoded dimensions throughout the workbench? That only asks for trouble imho.

@bpasero bpasero changed the title Allow to change the font, font size and line height of the workbench. Wip: Allow to change the font, font size and line height of the workbench. Mar 12, 2019
@saighost
Copy link
Contributor Author

Sorry, for so late. I have a long holiday at Spring Festival time.
In this PR, I remove lots of hardcode in css and .ts files.
Most I use 'inherit' Instead hardcode in css file of workbench, but not everywhere.
I can't make it too complex to use, so only divided them into two categories in workbench.
And I try to learn form 'Theme' but It looks like very complicated and not applicable for font size.
To solving the issue of hardcoded:
Need a 'FontProvider' for layout and height should be calculated in layout for most cases.
Lots of interface should refactoring, many view need to fix.
I wrote plugin for eclipse, so I am used to using interface of JFace and SWT.
CSS is out of my domain.
So I push wrote this PR, only work with title and some content parts in sidebar, but I can't give you a complete and compatible font system for workbench.There is a long way to go.

ps: I can't believe there are so many hardcodes in your code.

@saighost
Copy link
Contributor Author

BTW, most users in issues want to change sidebar, not all of workbench.
@bpasero I don't want to mark you trouble. You can close it.

@bpasero
Copy link
Member

bpasero commented Mar 13, 2019

I am fine leaving this open but I want to avoid that people think this is the full solution. Can you maybe turn this PR into a "Draft PR" or update the title.

@saighost saighost changed the title Wip: Allow to change the font, font size and line height of the workbench. Draft: Allow to change the font, font size and line height of the sidebar. Mar 13, 2019
@saighost
Copy link
Contributor Author

I tried but not so many time for it.

@bpasero
Copy link
Member

bpasero commented Aug 8, 2019

This is stale, has merge conflicts and a draft for the reasons outlined. Feel free to fix the merge conflicts and open a new PR as draft. Closing.

@bpasero bpasero closed this Aug 8, 2019
@shirshak55
Copy link

hmm we are not getting custom font for sidebar in vscode now :(

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants