put dev overlays into settings

This commit is contained in:
Tamius Han 2025-04-20 19:29:47 +02:00
parent adadc8bb3e
commit dffe8e055a
3 changed files with 21 additions and 0 deletions

View File

@ -12,6 +12,13 @@ export enum ExtensionEnvironment {
Fullscreen = 'fullscreen',
}
export interface DevUiConfig {
aardDebugOverlay: {
showOnStartup: boolean,
showDetectionDetails: boolean,
}
}
export interface KeyboardShortcutInterface {
key?: string,
code?: string,
@ -185,6 +192,7 @@ interface SettingsInterface {
},
},
devMode?: boolean,
dev: DevUiConfig,
}
restrictions?: RestrictionsSettings;

View File

@ -83,6 +83,13 @@ const ExtensionConfPatch = [
}];
delete (userOptions as any).actions;
userOptions.ui.dev = {
aardDebugOverlay: {
showOnStartup: false,
showDetectionDetails: true
}
}
}
}
];

View File

@ -127,6 +127,12 @@ const ExtensionConf: SettingsInterface = {
offsetX: -50,
offsetY: 0
}
},
dev: {
aardDebugOverlay: {
showOnStartup: false,
showDetectionDetails: true
}
}
},