PolyCompose

Library mod for building Minecraft screens and HUDs with Jetpack Compose. Made by Polyfrost. Formerly known as Compose Multiplatform.
Back to Files

3.1.0

File namepolycompose-26.1-fabric-3.1.0.jar
Uploader
PolyfrostPolyfrost
Uploaded
Dec 1, 2026
Downloads
21
Size
15.2 MB
Mod Loaders
Fabric
File ID
9944107
Type
R
Release
Supported game versions
  • 26.1.2
  • 26.1.1
  • 26.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:polycompose-1569167:9944107"

Learn more about Curse Maven

What's new

  • Fixed Compose HUDs on 1.8.9 not showing up in-game when Argentum's Direct Rendering is on. This needs Argentum 1.1.0 or newer
  • The d-pad and left stick move focus to the closest element in that direction, keep to the current row or column, and scroll lists to reach elements that are off screen. From a focused pane they move into its links and buttons. Focus stays inside an open popup or panel, and controller actions on the screen behind an open dialog don't fire
  • When the d-pad or left stick can't move focus any further, the focused element gets an arrow key instead, so menus that move their own highlight work with a controller
  • Added Modifier.focusEntry, which makes focus land on the selected item when it moves into a row of choices such as tabs
  • Focus comes back to where you were after a menu, dialog or panel closes, or when the focused element disappears, instead of starting over from the top
  • Added ComposeOptions.focusRing for styling the focus ring, Modifier.hidesFocusRing for widgets with their own focus look, Modifier.focusWhenShown for panels that should take focus when a controller opens them, Modifier.controllerFocusScope for keeping focus inside a panel, and ComposeScreen.controllerGuide for moving or hiding the button guide
  • Added Modifier.controllerArrows for widgets such as sliders that want the d-pad's arrow keys before focus moves
  • A sends Enter to the focused element before the screen's own key handling, so screens that react to Enter no longer take presses away from the focused button
  • X opens the focused element's context menu when it supports the Menu key
  • Added Modifier.controllerPan, which hands the right stick to a focused element instead of scrolling, for things like 3D previews and zoomed images
  • Added Modifier.controllerAction for running code when X, Y, a bumper, a trigger, a stick click, Back or Start is pressed on a focused element. Its label shows in Controlify's button guide. Back has no default button, because View toggles Controlify's cursor
  • Added Controllers to polycompose-core, so mods that only depend on the core can register controller actions, check Controllers.isActive, read the sticks and stop the right stick from turning the camera while an overlay is open
  • Controllers.register takes a ControllerContext, so an action can work in game, in screens or both. Actions default to in game only
  • Added Controllers.captureGameplay() for overlays such as radial wheels. While it's held, Controlify stops moving the player and sending gameplay buttons, but your own actions and the sticks keep working
  • In Controlify's mixed input mode, Controllers.isActive follows whichever device the player used last
  • Added InputKind and ComposeOptions.onInputKind(owner, kind), which now reports controller navigation too, and KeyEvent.isFromController
  • org.polyfrost.compose.minecraft.compat.controlify.ControllerActions, ControllerAction and ControllerButton are deprecated in favour of the new classes in org.polyfrost.compose.host.controller
  • Fixed screens not redrawing when their content changed in the background, so they stayed blank or out of date until you moved the mouse
  • Fixed a frosted panel sometimes staying over the game after switching menus
  • Fixed radial wheels and other things drawn straight onto the HUD flickering on 1.8.9 when the HUD is cached
  • Fixed the game drawing the wrong texture on 1.21.1-1.21.10 when a skin finished loading while PolyCompose was drawing
  • Fixed CJK characters, symbols and Force Unicode Font text on 1.21.1-1.21.5 not using the game's unicode font
  • Added PolyModifier.widthIn and PolyModifier.heightIn for minimum and maximum sizes, and PolyModifier.fitContent, which shrinks a node's content to fit when it overflows

This mod has no additional files