Skip to content

refactor: move the UI kit to design-ui - #1492

Open
Deftu wants to merge 12 commits into
v1from
feat/design-ui-move
Open

Deftu wants to merge 12 commits into
v1from
feat/design-ui-move

Conversation

@Deftu

@Deftu Deftu commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Description

Moves OneConfig's Compose UI kit into design-ui (org.polyfrost.design:design-ui 0.1.0) so other Polyfrost projects can use it, and adds custom fonts to themes.

  • The old kit stays in ui-compat with the same classes and signatures, so mods built against it keep working. All of it is deprecated and will be removed in a later release.
  • OptionMenuContributors and ModCardMenuContributors now live in org.polyfrost.oneconfig.api.ui.v1.menu and take design-ui menu entries. The old objects forward to them.
  • Custom themes can pick fonts from the fonts folder, and HUDs can use those fonts.
  • OneConfig screens now receive files dropped onto the window.
  • PolyGlass grouped sections draw as one card, and changelogs use the theme's heading and code fonts.

modules/ui/README.md still describes the old kit and needs an update.

Related Issue(s)

None

Checklist

  • I made a clear description of what was changed
  • I stated why these changes were necessary
  • I updated documentation or said what needs to be updated
  • I made sure these changes are backwards compatible
  • This pull request is for one feature/bug fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant