Add shared Mission Core operator appearance profile
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user