Commit graph RynthCore/tools/PanelTextScaleTests/Program.cs
Author SHA1 Message Date
Daniel Wallace
98316c1969 Toolbar size: let players enlarge the in-game ImGui bar
The bar's buttons are a fixed 20 logical px and the only multiplier is the
DPI scale, which is 1 for a DPI-unaware acclient, so the icons cannot be
made bigger. This adds a separate "chrome" row to PanelTextScale that the
bar draws at: it uses the existing baked enlarged fonts (icons stay sharp)
and scales the button size by the same step's factor. Tooltips and menus
opened from the bar inherit it.

- PanelTextScale: __chrome row with GetChrome/SetChrome; StepsInUse bakes it
  even with per-panel sizing off; SetForWindow's reset loop skips it;
  RYNTHCORE_PANEL_TEXT_SIZE overrides the file path for tests.
- ImGuiBar: grip right-click size row (- / + / Reset), Ctrl+wheel over the
  bar, and an on-screen clamp when the bar grows. A clamp only persists the
  position when the user dragged or the size changed, so a smaller AC
  window never overwrites the saved position.
- Settings > Display > Text Size: "Toolbar" combo.
- /rc ui barsize [0-10|+|-|+n|-n|status].
- tools/PanelTextScaleTests: offline tests for the chrome row.

Untouched: FontScale/_uiScale, placement scale, the plugin SDK, pop-out
styling and panel title bars.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-10 12:43:54 -07:00