max-ultra-mcp-community-skills

Shared Qt design system

Use this contract for tools created with this skill. Theme selection, Warm Graphite as the default, consistent control states, and the interaction rules below are the requested design standard, not universal Autodesk requirements. Exact breakpoints, optional opacity controls, and product-specific panels remain implementation choices; the window chrome, controls and dialogs follow the pages linked below. Do not add promotions, networking, or a skill browser to an unrelated tool.

Contents: theme pipeline; control states; the house rules; icons and sizing; responsive layout; loading and modality; host ownership. See implementation recipes for a starter theme and code patterns, and regression checks for observable tests.

The concrete, proven look and behaviour of the standard window, every control, Settings / Logs / About / Donate and the interface size are in windows, controls catalog, Settings, Logs, About and Donate and interface size; the code is in the starter templates. Where this general page and those pages differ, follow those pages.

One theme pipeline for every window

Every tool must expose theme selection, inside Settings when Settings exists. If there is no Settings window, expose an Appearance control/menu on the tool. Ship Warm Graphite (graphite) as the default and at least one useful alternate theme. Start with the bundled verified palette files, which work without the original checkout. Each palette is a separate editable assets/themes/<id>.json file in the generated tool. Colors belong in those files, geometry and spacing in shared UI code. Read the file again when selected; do not cache palettes indefinitely.

One theme manager loads, validates, resolves, and publishes a complete palette. Required roles:

Family Roles and behavior
Surfaces window, surface, field, recessed, popup; popup must be distinct from the field
Text text, muted_text, selected_text, disabled_text, link, link_hover
Interaction accent, hover, pressed, selected, focus, border, disabled_surface, disabled_border
Meaning success, warning, danger, danger_hover, danger_pressed, danger_text; distinguish pending from failed
Scrollbars scroll_track, scroll_thumb, scroll_hover, scroll_pressed

Aliases are acceptable if explicit and consistently resolved. The reference uses more specific names (for example window_background, selection_background, focus_border, log_error, delete_background); do not scatter literal hex values throughout widgets. For new tools, prefer semantic tokens directly to the reference’s legacy literal-color substitution map. Include visible status text or icons as well as color.

Validate required keys, value types, color syntax and any alias/mix cycles before changing active state. On a bad palette, preserve the previous working theme and picker value, and show the error. Persist only a successfully applied selection to a user settings file, never the asset file. Restore it on launch; fall back to Warm Graphite with a diagnostic when the saved choice is missing or invalid. A settings-write error must be reported as an unsaved preference, not silently called success.

Keep canonical unthemed QSS and rich-text sources separate from rendered output. Register every tool-owned top-level window, popup, dialog, overlay and rich-content widget; newly opened windows inherit the current palette. On selection, apply styles to deduplicated live widgets first, then rerender rich content from canonical source. Preserve selection, scroll anchor, focus and active document. Do not recolor unrelated Max windows or globally replace code/prose containing hex colors.

Use one link/link_hover scheme in labels, help browsers, status HTML, tooltips where supported, and context menus. Apply it explicitly in generated HTML CSS; avoid platform-blue defaults or inherited paragraph colors overriding anchors. Escape user text, validate link destinations, and keep embedded document resource loading explicit rather than allowing unintended file/network fetches. This is especially relevant when a tool displays imported content.

Shared controls and states

Implement each shared control once: buttons, status pills/badges, fields, dropdowns, spin controls, tabs, menus, progress bars, loading/Settings overlays, and requested About composition. Dialogs import or compose those implementations; they do not copy their paint events, QSS or interaction handlers. Use semantic variants (primary, secondary, danger, success, warning) and shared color/size/spacing tokens. A shared stylesheet alone does not justify duplicated behavior/painting. Prohibit drifting per-dialog overrides; put intentional exceptions in named documented variants such as About spacing. A control fix must propagate to every window. One small shared module is sufficient for small tools; do not introduce an unnecessary library/framework. Cover enabled, disabled, hover, pressed, selected, focused and busy states, including keyboard interaction.

Use one shared spacing/radius scale, for example spacing units 4, 8, 12, 16, 24 logical pixels and radii 3, 4, 6, 8. Give it semantic names: window inset, content inset, group inset, row gap, section gap, field radius, panel radius. Headers and content align to the same inset grid. Full-bleed hero backgrounds/dividers are explicit exceptions whose inner text still follows that grid. If responsive adaptation is chosen, select a complete density token set at each breakpoint rather than inventing per-control offsets. Otherwise keep the spacing scale stable. Values are starter design tokens, not copied product constants; verify against font metrics and hit targets.

House rules

These rules were set by the owner while building MaxPkg Packager 2.0 and apply to every tool made with this skill:

Icons, typography, and responsive layout

Use original Lucide SVG geometry exclusively for button icons unless the user requests another icon set, with its license in the generated tool’s distribution. Do not substitute emoji, font symbols, or approximated paths. Brand logos, if actually required, remain separate assets with their own rights. Tint action vectors using the active/disabled text roles. Rasterize at logical_size * devicePixelRatioF(), then set the pixmap device pixel ratio; avoid repeatedly scaling an already small bitmap. The reference copies a QIcon before clearing a borrowed style-option icon under PySide2.

The interface size for 2K / 4K screens (one factor per session from the screen and Windows / Max scaling, interface size) is part of DPI correctness inside Max, which turns Qt’s own scaling off; it is on by default and needs no question. First ask whether the user wants responsive breakpoint adaptation unless an explicit choice already exists. Explain that narrow windows reduce text/control sizes and may show icon-only actions, while wider windows enlarge fonts, controls and icons. If declined or unanswered, retain stable typography/control sizes and use ordinary layout reflow, scrolling and minimum sizes to fit. DPI-aware rendering is required either way. The tiered scaling and compact icon-only recipes below apply only after opt-in.

Use layouts and the actual row’s available width, including margins, stretch items, icon widths, font metrics and spacing. Reset previous compact constraints before computing a new fit. In the opted-in compact mode, collapse lower-priority actions to icon-only when needed; retain tooltips and accessible names. Keep help captions readable with fontMetrics().elidedText, full-text tooltips and a sensible minimum; reflow into rows/columns or scroll if controls still cannot fit. Do not let button rectangles overlap or clip destructive labels ambiguously.

Use common control-height tokens. An icon-only button may need as much height as a labeled button because point fonts scale independently of logical icon pixels; use style metrics and font height in sizeHint(). Coordinate typography, margins, spacing, icon size and scrollbar density, and restore every property when growing after shrinking. Avoid cumulative scaling or blindly inheriting the main panel’s breakpoints in auxiliary dialogs. Keep minimum UI text readable rather than shrinking indefinitely to fit.

The reference main panel currently uses <350 logical pixels for its smallest tier, with 24-pixel actions, 14-pixel icons and 7-pixel scrollbars, and larger tiers above 1250 and at 1800. These are observations, not universal defaults; fit the actual tool’s content. Validate 100%, 200%, and greater-than-200% display scaling and mixed-DPI monitor transitions. Keep all Qt layout geometry logical; multiply only raster/native coordinate operations that actually require physical pixels.

Progress, loading, and Settings modality

For long operations, use a pill progress bar with a clipped rounded fill. Known work uses real progress values; unknown work uses an indeterminate animation, never invented percentages. Show elapsed seconds from time.monotonic() next to it. Stop animation and elapsed timers when no longer needed; restarting an operation resets elapsed time. At low fill values, keep the fill inside the rounded track. Report completion/failure/cancellation in text.

A Skills-style loading overlay is a child over the content area: translucent recessed surface, centered faint circular track and accent arc, updated by an owned Qt timer (the reference uses 40 ms). Leave title/close/cancel controls usable as appropriate, disable underlying interactions, resize the overlay with its parent, and stop animation while hidden. Clear busy state on every completion and error path. Neither sleep nor nested event loops make loading nonblocking; long Max calls still block the UI, so chunk supported work or explain that limit.

Settings is modal, parented to the tool/Max ownership chain and shown above the tool’s other windows. Dim other tool-owned windows with full-window translucent child veils, not by reducing their opacity. Veils track resizing and newly shown owned windows; Settings and dialogs it opens must remain visible and interactive. Keep this modality controller separate from content-loading overlays.

If an opacity slider is included, apply the chosen base opacity to the target window. On slider press, temporarily hide that target’s Settings veil so the user can preview it; on release restore the veil and persist the value. Restore on hide, close, cancellation, loss of the drag, and errors too. Keyboard changes should persist without leaving a stale preview state. Do not change opacity on unrelated Max windows.

Window integration

Parent to Max, keep strong lifecycle ownership, and avoid global always-on-top flags. The Logs window is the one modeless tool dialog (watched while working); Settings, About and questions are modal. Every tool window, dialogs included, has the main window’s frameless chrome (windows); no native title bars. Preserve focus while updating status, themes, or documents. Use available monitor geometry (excluding taskbars) to restore and constrain window positions; handle disconnected monitors and windows larger than a work area. The standard main window is frameless with its own title bar, edge resizing and a collapsed bar (windows); it must retain close, drag, resize and modal stacking. Dialogs keep the native frame.

Round the main window’s corners: Windows 11 DWM (corner preference and a border tinted with the theme’s border colour), and a rounded window mask where DWM refuses. Gate native code by platform and capability, use correct native handle types, and fail gracefully without preventing the tool opening. Do not promise identical corners on all Windows/Qt/remote-session combinations. Cleanup must remove global focus hooks, event filters, timers, veils, popups, window registries and deferred theme/reflow work as described in lifecycle.