Files
client/tests/STYLE_THEME.md
T

3.3 KiB

Reference menu style

Style source: D:/projects/menus/bitchbot/src/main.cpp (read only). Its UI uses FreeType-rasterized Verdana, white/gray text with four one-pixel black shadows, square charcoal gradients, black inset borders, and accent #7a459c with a half-brightness secondary stripe. Checkboxes use a solid gradient selection; sliders use filled gradient tracks, centered values and +/- label controls; combos use +/- indicators and accent selections; key binds use plain text.

The client retains its panel/category layout, HUD positions, editor navigation, lowercase display and existing profile/module identifiers. The mini player uses a separate, case-preserving Verdana face for external song/artist/player metadata; other client text keeps the lowercase display. Body and category text use the reference's 13px Verdana, with 11px secondary labels. The font atlas uses FreeType with native mono hinting (grayscale antialiasing retained) and horizontal pixel snapping, including the embedded fallback font. The backend is shared by the DLL, integration tests and offscreen preview. HUD text is measured at its actual rendered size, including non-integer scales. Row cards balance top/bottom padding, values share right edges, and mini-player art, text, progress and controls share consistent insets/gaps.

Module rows are 26px; action buttons, binds and combos are 22px; toggle rows are 20px. Native controls use 3px vertical padding. Existing user colors remain stored; legacy default HUD text/accent colors are adapted at display time, without rewriting profiles or other custom colors.

Notifications follow D:/projects/asm_notifications: compact messages at the top left, text-sized cards, 2px stack gaps, half-second eased horizontal slides and exit fades, smoothed stack movement, blinking/bouncing warning lines. Client timer and live-task progress bars remain available. Backgrounds, borders and the accent use the shared menu theme; errors use its error color.

Module settings use the reference indent group: a 3px dark vertical guide and 14px indentation. Expansion and collapse animate the reserved height and clip the settings, with frame-rate-independent easing. Controls remain disabled until the reveal finishes; the category owns scrolling.

Shared styling covers ClickGUI, profile dialogs, HUD editor, HUD cards, world nametags, target/armor/tool/effect/session HUDs, keystrokes, inventory buttons and picker, media art frames/controls, notifications and the startup screen. Gameplay rendering colors (crosshair, particles, glint, fog, block outlines) remain module settings rather than being replaced by the UI theme.

Small local ImGui rendering changes apply shadows, native control gradients, native checkbox fills, popup/window gradients and accent borders consistently. They do not change widget input handling or window layout. Keep these changes when updating the vendored ImGui revision.

Verification: actual checkbox/slider clicks, slider value bounds, stable row positions, nested draw-list splitting, open dropdown/style-stack balancing, finite HUD geometry, native font glyph/layout checks and the full integration suite. An offscreen D3D11/WARP preview uses the actual ClickGUI and widgets with sample modules (client/build/style-preview.png). Final visual behavior in Minecraft requires reloading the rebuilt DLL.