Skip to content

feat: accept fontFamily parameter in createYaruTheme#1075

Draft
adil192 wants to merge 5 commits intoubuntu:mainfrom
adil192:feat/custom-font-parameter
Draft

feat: accept fontFamily parameter in createYaruTheme#1075
adil192 wants to merge 5 commits intoubuntu:mainfrom
adil192:feat/custom-font-parameter

Conversation

@adil192
Copy link
Copy Markdown
Contributor

@adil192 adil192 commented Apr 4, 2026

This PR adds font parameters to createYaruTheme, createYaruLightTheme, and createYaruDarkTheme.

When the theme is created, its text theme is passed around to several ___ThemeData classes, making it difficult to completely override the font later.
Adding the parameters right at the start fixes this issue.
This has no impact on YaruVariant.

I had to workaround this recently in saber-notes/saber@a453147. Note that changing the font isn't purely aesthetic, but is sometimes needed for language support.

Builds upon #1074. I'll mark this as a draft until that PR is merged.

@adil192 adil192 marked this pull request as draft April 4, 2026 03:26
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.

1 participant