Skip to content

Commit 6781d16

Browse files
committed
productize the dialog style setting for desktop
1 parent d4d7666 commit 6781d16

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎src/vs/workbench/electron-sandbox/desktop.contribution.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,13 @@ import { IJSONSchema } from 'vs/base/common/jsonSchema';
268268
'scope': ConfigurationScope.APPLICATION,
269269
'description': nls.localize('titleBarStyle', "Adjust the appearance of the window title bar. On Linux and Windows, this setting also affects the application and context menu appearances. Changes require a full restart to apply.")
270270
},
271+
'window.dialogStyle': {
272+
'type': 'string',
273+
'enum': ['native', 'custom'],
274+
'default': 'native',
275+
'scope': ConfigurationScope.APPLICATION,
276+
'description': nls.localize('dialogStyle', "Adjust the appearance of dialog windows.")
277+
},
271278
'window.nativeTabs': {
272279
'type': 'boolean',
273280
'default': false,

‎src/vs/workbench/services/dialogs/electron-sandbox/dialogService.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class DialogService implements IDialogService {
5959
}
6060

6161
private get useCustomDialog(): boolean {
62-
return this.configurationService.getValue('workbench.dialogs.customEnabled') === true;
62+
return this.configurationService.getValue('window.dialogStyle') === 'custom';
6363
}
6464

6565
confirm(confirmation: IConfirmation): Promise<IConfirmationResult> {

0 commit comments

Comments
 (0)