forked from 1b-agent/opencadstudio-upstream
units_btn and scale_popup_btn were byte-identical apart from the message they emit. Fold them into a single popup_pill(label, open, msg) helper so every popup-opening pill goes through shared chrome, matching toggle_pill (icon toggles) and split_pill (toggle + caret dropdown). Co-Authored-By: Claude Opus 4.8 <[email protected]>