Skip to content

Commit b1dafea

Browse files
committed
1 parent 4891adb commit b1dafea

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/vs/base/browser/ui/dialog/dialog.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export interface IDialogStyles extends IButtonStyles {
2626
dialogForeground?: Color;
2727
dialogBackground?: Color;
2828
dialogShadow?: Color;
29+
dialogBorder?: Color;
2930
}
3031

3132
export class Dialog extends Disposable {
@@ -161,11 +162,13 @@ export class Dialog extends Disposable {
161162
const fgColor = style.dialogForeground ? `${style.dialogForeground}` : null;
162163
const bgColor = style.dialogBackground ? `${style.dialogBackground}` : null;
163164
const shadowColor = style.dialogShadow ? `0 0px 8px ${style.dialogShadow}` : null;
165+
const border = style.dialogBorder ? `1px solid ${style.dialogBorder}` : null;
164166

165167
if (this.element) {
166168
this.element.style.color = fgColor;
167169
this.element.style.backgroundColor = bgColor;
168170
this.element.style.boxShadow = shadowColor;
171+
this.element.style.border = border;
169172

170173
if (this.buttonGroup) {
171174
this.buttonGroup.buttons.forEach(button => button.style(style));

src/vs/platform/theme/common/styler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,14 @@ export interface IDialogStyleOverrides extends IButtonStyleOverrides {
334334
dialogForeground?: ColorIdentifier;
335335
dialogBackground?: ColorIdentifier;
336336
dialogShadow?: ColorIdentifier;
337+
dialogBorder?: ColorIdentifier;
337338
}
338339

339340
export const defaultDialogStyles = <IDialogStyleOverrides>{
340341
dialogBackground: editorWidgetBackground,
341342
dialogForeground: foreground,
342343
dialogShadow: widgetShadow,
344+
dialogBorder: contrastBorder,
343345
buttonForeground: buttonForeground,
344346
buttonBackground: buttonBackground,
345347
buttonHoverBackground: buttonHoverBackground,

0 commit comments

Comments
 (0)