Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/base/browser/ui/button/button.ts')
-rw-r--r--src/vs/base/browser/ui/button/button.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vs/base/browser/ui/button/button.ts b/src/vs/base/browser/ui/button/button.ts
index 489425b6ce4..920160b9a15 100644
--- a/src/vs/base/browser/ui/button/button.ts
+++ b/src/vs/base/browser/ui/button/button.ts
@@ -28,6 +28,7 @@ export interface IButtonStyles {
buttonBackground?: Color;
buttonHoverBackground?: Color;
buttonForeground?: Color;
+ buttonSeparator?: Color;
buttonSecondaryBackground?: Color;
buttonSecondaryHoverBackground?: Color;
buttonSecondaryForeground?: Color;
@@ -37,6 +38,7 @@ export interface IButtonStyles {
const defaultOptions: IButtonStyles = {
buttonBackground: Color.fromHex('#0E639C'),
buttonHoverBackground: Color.fromHex('#006BB3'),
+ buttonSeparator: Color.white,
buttonForeground: Color.white
};
@@ -315,7 +317,7 @@ export class ButtonWithDropdown extends Disposable implements IButton {
// Separator
this.separatorContainer.style.backgroundColor = styles.buttonBackground?.toString() ?? '';
- this.separator.style.backgroundColor = styles.buttonForeground?.toString() ?? '';
+ this.separator.style.backgroundColor = styles.buttonSeparator?.toString() ?? '';
}
focus(): void {
@@ -339,12 +341,10 @@ export class ButtonWithDescription extends Button implements IButtonWithDescript
this._labelElement = document.createElement('div');
this._labelElement.classList.add('monaco-button-label');
- this._labelElement.tabIndex = -1;
this._element.appendChild(this._labelElement);
this._descriptionElement = document.createElement('div');
this._descriptionElement.classList.add('monaco-button-description');
- this._descriptionElement.tabIndex = -1;
this._element.appendChild(this._descriptionElement);
}