File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3132export 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 ) ) ;
Original file line number Diff line number Diff 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
339340export const defaultDialogStyles = < IDialogStyleOverrides > {
340341 dialogBackground : editorWidgetBackground ,
341342 dialogForeground : foreground ,
342343 dialogShadow : widgetShadow ,
344+ dialogBorder : contrastBorder ,
343345 buttonForeground : buttonForeground ,
344346 buttonBackground : buttonBackground ,
345347 buttonHoverBackground : buttonHoverBackground ,
You can’t perform that action at this time.
0 commit comments