Repository navigation
fix(plugins): ui.radio is flat when not selected, with official's new dot (UP-214) - #1175
Merged
Merged
Conversation
Hona
marked this pull request as draft
November 25, 2026 08:19
Hona
force-pushed
the
up-214/plugin-radio
branch
2 times, most recently
from
November 25, 2026 11:00
cc7c7d0 to
bde1931
Compare
… dot The plugin runtime draws its own radio (the WSL dialog). Official redrew the radio (anomalyco/opencode#66108): no top light on a control that is not selected; the selected dot has the depth gradient, a ring in the contrast icon colour and the small elements' drop.
Hona
force-pushed
the
up-214/plugin-radio
branch
from
November 25, 2026 11:51
bde1931 to
568a577
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The plugin runtime's
ui.radiofollows official's new radio look (anomalyco/opencode#66108, ledger row UP-214): a control that is not selected is flat, and the selected dot has official's gradient, ring and drop. The WSL dialog is the one place that draws it.Why
Official redrew the radio as Figma has it (
packages/ui/src/forms/radio/radio.cssata44675ecee). The app draws radios in two places:RadioItem. That is fixed in Rune (feat(kit): the radio control is flat when not selected, and takes a surface rune#2198) and reaches the app with the next Rune pin.ui.radio, which the plugin runtime draws itself (radio_widgetincrates/opencode-plugin-runtime/src/ui_nodes.rs). It still had the old 6% top light and the old dot. This PR fixes it and needs no pin.What changes
bg-basewith a 6% top lightbg-baseradio.css:92radio.css:125radio.css:140-160Not ported: official's new
surface="layer-1". Its WSL dialog passes no surface, soui.radiogets no new prop and the plugin contract is unchanged.What a user sees
In the WSL dialog, in dark, a distro's radio that is not selected loses its faint top light, and the selected one's dot is a little brighter at the top with a lighter ring. In light only the dot changes: the top light was white on a white base.
Run
devbuild (published dev 489). A scratch plugin, not in the repo, opens a dialog that drawsui.radioin each state it has: not selected, selected, not selected with a danger-tone description, disabled, disabled and selected, and line height 16. Dark and light, at 2x, compared pixel by pixel.Dark, with a control that is not selected, a selected one and a disabled selected one at 6x:
Light:
scripts/guardrails.ps1: 9 of 9 pass on this head.Not run
ui.radio) in a scratch dialog.ui.radiohas no invalid state, so there is none to picture.