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

Customizable tooltip font #14537

Open
Wuzzy2 opened this issue Apr 12, 2024 · 0 comments
Open

Customizable tooltip font #14537

Wuzzy2 opened this issue Apr 12, 2024 · 0 comments
Labels
@ Client / Audiovisuals Feature request Issues that request the addition or enhancement of a feature Formspec @ Script API

Comments

@Wuzzy2
Copy link
Contributor

Wuzzy2 commented Apr 12, 2024

Problem

Games can set the font type for all formspec elements, for example with style_type[*;font=mono], every font in all formspec elements turns to mono.

With one major exception: Tooltips. Tooltips always use the normal sand-serif font.

Solutions

Add a new way for mods to specify a font type for tooltips. This could be done by adding a new style_type.

I wish that it will affect all tooltips, no matter if hovering an item or if generated by a tooltip[] formspec element. Consistency is important.

Alternatives

Instead of extending style_type, add a special formspec element like listcolors (which currently allows customization of tooltip colors, despite its name) that only does tooltip stuff.

I like this idea less.

Additional context

No response

@Wuzzy2 Wuzzy2 added the Feature request Issues that request the addition or enhancement of a feature label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Client / Audiovisuals Feature request Issues that request the addition or enhancement of a feature Formspec @ Script API
Projects
None yet
Development

No branches or pull requests

3 participants