未验证 提交 45e59bf5 编写于 作者: A Alexander 提交者: GitHub

Expose border style for debug toolbar

上级 6e719219
......@@ -38,6 +38,11 @@ export const debugToolBarBackground = registerColor('debugToolBar.background', {
light: '#F3F3F3',
hc: '#000000'
}, localize('debugToolBarBackground', "Debug toolbar background color."));
export const debugToolBarBorder = registerColor('debugToolBar.border', {
dark: null,
light: null,
hc: null
}, localize('debugToolBarBorder', "Debug toolbar border color."));
export class DebugActionsWidget extends Themable implements IWorkbenchContribution {
......@@ -159,9 +164,16 @@ export class DebugActionsWidget extends Themable implements IWorkbenchContributi
this.$el.style('box-shadow', widgetShadowColor ? `0 5px 8px ${widgetShadowColor}` : null);
const contrastBorderColor = this.getColor(contrastBorder);
this.$el.style('border-style', contrastBorderColor ? 'solid' : null);
this.$el.style('border-width', contrastBorderColor ? '1px' : null);
this.$el.style('border-color', contrastBorderColor);
const borderColor = this.getColor(debugToolBarBorder);
if (contrastBorderColor) {
this.$el.style('border', `1px solid ${contrastBorderColor}`);
} else {
this.$el.style({
'border': `1px solid ${borderColor ? borderColor : 'transparent'}`,
'border-width': '1px 0'
});
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册