Add shared Mission Core operator appearance profile

This commit is contained in:
Codex
2026-09-30 22:42:27 +03:00
parent 2d23a0262e
commit a6e6c8f2d9
6 changed files with 74 additions and 4 deletions
+4 -1
View File
@@ -15,6 +15,8 @@ export interface NodedcMaterial {
export interface ApplyThemeOptions {
theme?: NodedcTheme;
/** Operator UI qualified against Mission Core; opt-in across portals. */
appearance?: "default" | "mission";
accent?: RgbTuple;
material?: NodedcMaterial;
}
@@ -29,9 +31,10 @@ function clampOpacity(value: number): number {
export function applyNodedcTheme(
target: HTMLElement,
{ theme = "dark", accent, material }: ApplyThemeOptions = {},
{ theme = "dark", accent, material, appearance = "default" }: ApplyThemeOptions = {},
): void {
target.dataset.nodedcTheme = theme;
target.dataset.nodedcAppearance = appearance;
target.dataset.nodedcUi = "true";
if (accent) {