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.
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.
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.
controls.unify_heights), moderate rounded corners, clear focus outline, disabled contrast without an active hover treatment; a disabled primary or danger button keeps a darker shade of its own colour, never grey. Enabled clickable controls use a pointing-hand cursor; update it when enabled state changes. Editable text retains its text cursor. Use Title Case captions while keeping short connecting words such as to, and, a, the lowercase and preserving acronyms.Objects 1,234 to Obj 1,234), units where needed, and full accessible text/tooltips. Do not replace the entire value with an ellipsis. If it still cannot fit, wrap/reflow the row or provide usable scrolling rather than hiding the number. Decorative status badges use the normal cursor; only actionable pills get a pointing hand.Copied and the Lucide check icon, then restore the original caption/icon after 2000 ms. Repeated copies restart one widget-owned timer. Restore accessible text too; destruction/restart cancels feedback.ui/switch.py: rounded track, sliding knob, accent when on), in Settings and everywhere else. Checkboxes remain for picking items of a list or a partly selected group: one rounded indicator style with a visible check glyph, accent checked state, hover border, keyboard focus, and explicit disabled checked/unchecked states; handle partial state if tri-state is used. The reference Settings style is evidence, but its donate-specific color names are not a general dependency.chevron-down vector in the current text/disabled color. Remove the native arrow and make the drop-down subcontrol borderless and transparent, eliminating its square button. Use a themed QListView popup with compact padding, rounded outer clipping, distinct popup background and selected/hover text contrast. Place it 4 logical pixels below the field, or above when space requires; clamp to the screen work area; round the popup window with a mask (controls.round_popup). The wheel never changes the value, focused or not; it scrolls the page. Preserve native keyboard selection and accessibility. A category value that is also shown as a badge uses the badge dropdown (forms.BadgeComboBox), sized to its content.pickers.Stepper): one rounded field with small Lucide up/down chevrons stacked inside its right edge, step bounds, the arrows and the Up / Down keys; the wheel never steps it. A version is three steppers captioned Major / Minor / Patch. Dates use the date field and its themed calendar (pickers.DateField), never a native QDateEdit popup.controls.Menu: rounded outer mask, comfortable item padding, theme hover/selection highlight, a Lucide icon on every item, the window’s interface-size font. Separate destructive actions with a separator and show them in danger red; disabled actions use disabled roles. A right-click menu must operate on the intended target without invoking selection-driven document loading or refresh. Keyboard context menus use the current selection/cursor location.scroll_thumb with hover and pressed colours, minimum length 28 px. Keep the radius at half the thumb after scaling, or Qt draws it square (see controls catalog). Clear native arrows, add/sub-line and add/sub-page backgrounds; make scroll-area backing containers and the corner transparent to remove blue/square native backing. Apply both axes and popup scrollbars.These rules were set by the owner while building MaxPkg Packager 2.0 and apply to every tool made with this skill:
ui_scale.space(n) refuses anything else); see the rule in the controls catalog.ToolWindow.HEADER_SHADE, header_bottom).* after its name; a panel whose content
is required has one after its title. An invalid field gets a red outline and the red error bubble, which appears
only after the pointer really moves on the field (Qt sends Enter when a dropdown above it closes).code chips for names and characters.controls.paint_bubble).active_border that shows on every side.https://). A jump from the mini log opens a closed group to show its field.forms.Collapsible); their titles look like panel titles.QMessageBox (questions: dialogs.ask). Dialog buttons stay at the bottom, outside any scroll area.logs icon, as
in MaxPkg Runtime Manager; it opens the modeless Logs window.dialogs.ask comes before anything that cannot be
undone; neither replaces the mini log or the field’s error bubble.ask, inform, ask_text, WelcomeDialog, SupportDialog); never a
QMessageBox, QInputDialog, QErrorMessage or QProgressDialog. Only the system’s file and folder pickers stay
native.controls.same_width): Close is never smaller than the Donate beside it.SectionBook). The
same list holds a main window with many sections.EdgeFade), as in the
MaxPkg Package Manager.QCursor.setPos) or send keys to the user’s windows; give the code a fake
pointer position instead (ErrorHints.cursor_pos).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.
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.
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.