-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
The font size of the UI can't easily be scaled up or down #1087
Comments
You can increase the tab font size via your user stylesheet. Here's one way of increasing the tab text size: .tab .title {
font-size: 14px;
} Change the |
@savetheclocktower Is totally right on a solution here, but I do wonder why the Which @emerajid for many cases adjusting the But testing this myself changing my font size in settings does adjust it for many places, yet in the GitHub pane only one or two places abide by my change. I picked out the text I know adjusting font-sizes to far can make UI's break, but I feel like it'd make a ton of sense for us to ensure that font's scale with whatever the user selected, everywhere. I mean there is already |
Whoops, I misread this entirely. I saw “tab” and assumed you must mean the tab text. Apologies. Let me dig into this. |
Luckily, it does seem to get scaled proportionally; you should be able to do .github-Git {
font-size: 20px;
} or whatever value you like. Setting the @confused-Techie, if you're thinking of the |
After some more hours, I notice tiny fonts in quite many places. Please, if possible, provide instructions on how to tweak user stylesheet to fix a tiny font in an arbitrary place. Also, we possibly need change issue title to a more generic one, but I won't edit it myself without feedback. |
@emerajid, the instructions are on the page I linked above. But I agree that that's an advanced technique and we shouldn't make users do that for common tasks (like changing the size of all text in the editor). There's a legit bug here: the GitHub extension sets its own font size instead of inheriting the font size defined on .github-Git {
font-size: unset;
} …so that it inherits the body { font-size: 20px; } in your user stylesheet and have it apply to almost everything on screen at once. You mention that you've noticed other places where font sizes are too small. Please let us know what they are; if they're in Pulsar's core packages, we can certainly do something about it. Sometimes the answer will be a user override, but I grant that most users shouldn't have to go digging into the developer tools in situations like these. |
font-size
I changed the ticket name to cover what I think is the real issue. It's not hygienic for a package to hard-code a @import "ui-variables";
.SomeContainer {
font-size: @font-size * 0.75;
} We can't magically fix community packages that do this, but we can certainly clean up our own house. Right now, the GitHub package is the only one I'm aware of, but we can expand this ticket to cover other core packages if other instances are found. |
@emerajid, I should also point out — I completely forgot about it — that the Yet when I change the font size via the settings, it doesn't apply to the Git tab — but it should! The EDIT: Nope, I understand why. In this case, the setting doesn't actually change the value of The user stylesheet gives users a chance to apply override styles, but my understanding is that it's evaluated after everything else (so that it can act later and win out in case of ties). The best fix here would be to redefine |
@savetheclocktower |
@emerajid Since you're on Linux, you might have to launch Pulsar from the command line with @confused-Techie, is that still accurate, or am I just spreading old advice? If there's newer guidance, I'll add it to this page. |
@savetheclocktower That advice for Linux users is still totally accurate. But on the topic of this thread, I realize you said the At least in core packages, couldn't we do: .some-class {
font-size: (@font-size * 2); // Or whatever?
} It seems like basic accessibility we would want to implement. And if a workable solution I'd be happy to go around adding it where needed, but I realize this does nothing for community packages. |
My evolving understanding of the issue means that practically every single comment I've made on this issue is inaccurate or incomplete. Let me try again. The The problem is that The setting I mentioned above doesn't regenerate the stylesheet when the user changes the font size; it just applies the corresponding size as an inline style on the So I imagine that lots of packages actually do handle this correctly and hook into One thing would definitely fix @emerajid’s issue, but it's ridiculous: someone could fork I'll read the Less docs to see if I'm missing anything. But I suspect that the fix would involve a package setting that actually regenerates the stylesheets (or some subset, at least) whenever the user changes the setting. I forget where I first saw this done, but I borrowed the technique for calculator-light-ui. There's another idea that I have that I spent about 30 minutes on earlier — I think it's far more promising, but might be a bit disruptive. Ever since we upgraded Less last year, we've had the ability to define functions that can be imported into Less stylesheets and act as values. The example from the Less docs involves a function that returns a constant numeric value, but we could just as easily define that function in such a way that it looked up configuration values. Imagine if @font-size: config('one-dark-ui.fontSize', 'px'); This is pretty easy, believe it or not. You've got to be careful to validate the values you get from config (so that you don't try to create a pixel value out of a string setting, etc.) but that can be managed. The harder part is regenerating the styles — both knowing when to do it and actually doing it. When you're developing a theme in dev mode, the Ultimately, even if we get a version of this that doesn't take effect until the window reloads, it's still an improvement. Then we could have that |
font-size
@emerajid I just thought of a different workaround that might work better for you until we can figure out a proper fix:
@zoom: 1.2;
body {
zoom: @zoom;
}
atom-text-editor {
zoom: calc(1 / @zoom);
} What does this do?
This has the effect of scaling up all non-text-editor text without screwing up code editing. (The font size of the editor itself can be changed in settings.) You can change the value of I wouldn't be surprised if this had some other weird side effect, but play around with it for a while and see if it works for you. |
@savetheclocktower reset
and try to prevent the All in all it can be used as the solution, but it would be a much smoother experience if a workaround could be found around such glitches. If I find out anything else I'll report it. This is more or less just a first glance at your response. |
Yeah, I tested this approach with a bunch of things… but not with pane resizing. It, too, interprets clicks and drags differently because the Sorry for wasting some of your time. Back to the drawing board! If I get some time, I'll build a quick one-off version of |
@savetheclocktower |
Have you checked for existing feature requests?
Summary
Tab to the right, half of the text is frustratingly small. There must be a way to make the font size larger. Search through settings yields nothing at all.
What benefits does this feature provide?
Accessibility. You only got two eyes and glasses are expensive.
Any alternatives?
Not that I know of.
Other examples:
Not really, IIRC Visual Studio Code allows this, but I never used it personally and am not going to.
The text was updated successfully, but these errors were encountered: