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/workbench/contrib/scm/browser/scmViewPane.ts')
-rw-r--r--src/vs/workbench/contrib/scm/browser/scmViewPane.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/vs/workbench/contrib/scm/browser/scmViewPane.ts b/src/vs/workbench/contrib/scm/browser/scmViewPane.ts
index 85882236c93..d13303d909f 100644
--- a/src/vs/workbench/contrib/scm/browser/scmViewPane.ts
+++ b/src/vs/workbench/contrib/scm/browser/scmViewPane.ts
@@ -24,7 +24,7 @@ import { IAction, ActionRunner, Action, Separator } from 'vs/base/common/actions
import { ActionBar, IActionViewItemProvider } from 'vs/base/browser/ui/actionbar/actionbar';
import { IThemeService, IFileIconTheme, ThemeIcon } from 'vs/platform/theme/common/themeService';
import { isSCMResource, isSCMResourceGroup, connectPrimaryMenuToInlineActionBar, isSCMRepository, isSCMInput, collectContextMenuActions, getActionViewItemProvider, isSCMActionButton } from './util';
-import { attachBadgeStyler, attachButtonStyler } from 'vs/platform/theme/common/styler';
+import { attachBadgeStyler } from 'vs/platform/theme/common/styler';
import { WorkbenchCompressibleObjectTree, IOpenEvent } from 'vs/platform/list/browser/listService';
import { IConfigurationService, ConfigurationTarget, IConfigurationChangeEvent } from 'vs/platform/configuration/common/configuration';
import { disposableTimeout, ThrottledDelayer } from 'vs/base/common/async';
@@ -88,6 +88,7 @@ import { DragAndDropController } from 'vs/editor/contrib/dnd/browser/dnd';
import { DropIntoEditorController } from 'vs/editor/contrib/dropIntoEditor/browser/dropIntoEditorContribution';
import { MessageController } from 'vs/editor/contrib/message/browser/messageController';
import { contrastBorder, registerColor } from 'vs/platform/theme/common/colorRegistry';
+import { defaultButtonStyles } from 'vs/platform/theme/browser/defaultStyles';
type TreeElement = ISCMRepository | ISCMInput | ISCMActionButton | ISCMResourceGroup | IResourceNode<ISCMResource, ISCMResourceGroup> | ISCMResource;
@@ -114,7 +115,6 @@ class ActionButtonRenderer implements ICompressibleTreeRenderer<ISCMActionButton
constructor(
@ICommandService private commandService: ICommandService,
@IContextMenuService private contextMenuService: IContextMenuService,
- @IThemeService private themeService: IThemeService,
@INotificationService private notificationService: INotificationService,
) { }
@@ -126,7 +126,7 @@ class ActionButtonRenderer implements ICompressibleTreeRenderer<ISCMActionButton
container.parentElement!.parentElement!.classList.add('cursor-default', 'force-no-hover');
const buttonContainer = append(container, $('.button-container'));
- const actionButton = new SCMActionButton(buttonContainer, this.contextMenuService, this.commandService, this.themeService, this.notificationService);
+ const actionButton = new SCMActionButton(buttonContainer, this.contextMenuService, this.commandService, this.notificationService);
return { actionButton, disposable: Disposable.None, templateDisposable: actionButton };
}
@@ -2511,7 +2511,6 @@ export class SCMActionButton implements IDisposable {
private readonly container: HTMLElement,
private readonly contextMenuService: IContextMenuService,
private readonly commandService: ICommandService,
- private readonly themeService: IThemeService,
private readonly notificationService: INotificationService
) {
}
@@ -2547,15 +2546,16 @@ export class SCMActionButton implements IDisposable {
addPrimaryActionToDropdown: false,
contextMenuProvider: this.contextMenuService,
title: button.command.tooltip,
- supportIcons: true
+ supportIcons: true,
+ ...defaultButtonStyles
});
} else if (button.description) {
// ButtonWithDescription
- this.button = new ButtonWithDescription(this.container, { supportIcons: true, title: button.command.tooltip });
+ this.button = new ButtonWithDescription(this.container, { supportIcons: true, title: button.command.tooltip, ...defaultButtonStyles });
(this.button as ButtonWithDescription).description = button.description;
} else {
// Button
- this.button = new Button(this.container, { supportIcons: true, title: button.command.tooltip });
+ this.button = new Button(this.container, { supportIcons: true, title: button.command.tooltip, ...defaultButtonStyles });
}
this.button.enabled = button.enabled;
@@ -2563,7 +2563,6 @@ export class SCMActionButton implements IDisposable {
this.button.onDidClick(async () => await this.executeCommand(button.command.id, ...(button.command.arguments || [])), null, this.disposables.value);
this.disposables.value!.add(this.button);
- this.disposables.value!.add(attachButtonStyler(this.button, this.themeService));
}
focus(): void {