vscode-lean4 icon indicating copy to clipboard operation
vscode-lean4 copied to clipboard

InfoView font size

Open lovettchris opened this issue 4 years ago • 6 comments

how can the user customize the InfoView font size?

lovettchris avatar Sep 29 '21 19:09 lovettchris

The font size (and family) is taken from the editor font by default. It will also change font size along with the rest of the UI when you press ctrl++ or ctrl+-. If you want more customization, then the lean4.infoViewStyle property allows you to style the infoview with arbitrary CSS.

gebner avatar Sep 29 '21 19:09 gebner

Yes I found lean4.infoViewStyle, but how do you use it exactly? Exposing CSS like this is powerful, perhaps too powerful for normal users that have no idea what CSS is...

I was surprised that this setting did not affect it

image

and most other parts of vscode have their own explicit 'font size' properties.... (markdown preview, debug console, terminal, etc).

lovettchris avatar Sep 29 '21 19:09 lovettchris

Yes I found lean4.infoViewStyle, but how do you use it exactly?

You can set it to body { font-size: 30px; } for example.

I was surprised that this setting did not affect it

Wait, the "Font Size" setting should have an effect. Ah, but only after you restart vscode, and then only for the code in the infoview (and not the other text)...

and most other parts of vscode have their own explicit 'font size' properties.... (markdown preview, debug console, terminal, etc).

I'm not against it, such a setting seems like a reasonable addition. (It would also be great if the changes were applied immediately and you didn't have reopen the infoview.) You're the first to ask for this feature though!

gebner avatar Sep 29 '21 20:09 gebner

Marked as a low priority since none of the actual users asked for this feature.

leodemoura avatar Jun 28 '22 19:06 leodemoura

Just a note to say I'm an actual user and I would love this feature!

linesthatinterlace avatar Apr 09 '24 15:04 linesthatinterlace

it would be lovely, I agree!

angeris avatar Sep 29 '24 01:09 angeris