Skip to content

qml: Add typography design tokens to Theme#564

Merged
hebasto merged 4 commits into
bitcoin-core:qt6from
pseudoramdom:design-system
May 11, 2026
Merged

qml: Add typography design tokens to Theme#564
hebasto merged 4 commits into
bitcoin-core:qt6from
pseudoramdom:design-system

Conversation

@pseudoramdom
Copy link
Copy Markdown
Contributor

Currently every text hardcodes font.family: "Inter" and raw pixel sizes.
This PR establishes a typography layer of the design system inside the existing Theme.
It introduces semantic text roles so consumers can write font: Theme.text.body.font instead

Additionally, add a debug-only preview page to visually verify all roles in one place.
It lives under Settings → Display → Theme, in a new "Developer" section that's hidden in release builds.

Screenshot 2026-05-04 at 11 55 12 AM Screenshot 2026-05-04 at 11 41 50 AM Screenshot 2026-05-04 at 11 42 04 AM

@pseudoramdom
Copy link
Copy Markdown
Contributor Author

@johnny9 We have some places where we still reference the old "Inter" font family on qt6. Instead of fixing that, I'd like to merge this so that we refer to the semantic text styles from the Theme going forward.

Copy link
Copy Markdown
Collaborator

@johnny9 johnny9 left a comment

Choose a reason for hiding this comment

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

ACK 1d613ee

@hebasto hebasto merged commit 80925c5 into bitcoin-core:qt6 May 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants