Skip to content

Commit 67f9158

Browse files
authored
actionbar - animated is an obsolete property (microsoft#205854)
1 parent 7b05939 commit 67f9158

File tree

12 files changed

+5
-22
lines changed

12 files changed

+5
-22
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export interface IActionBarOptions {
4747
readonly actionRunner?: IActionRunner;
4848
readonly ariaLabel?: string;
4949
readonly ariaRole?: string;
50-
readonly animated?: boolean;
5150
readonly triggerKeys?: ActionTrigger;
5251
readonly allowContextMenu?: boolean;
5352
readonly preventLoopNavigation?: boolean;
@@ -137,10 +136,6 @@ export class ActionBar extends Disposable implements IActionRunner {
137136
this.domNode = document.createElement('div');
138137
this.domNode.className = 'monaco-action-bar';
139138

140-
if (options.animated !== false) {
141-
this.domNode.classList.add('animated');
142-
}
143-
144139
let previousKeys: KeyCode[];
145140
let nextKeys: KeyCode[];
146141

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,10 +1056,6 @@ ${formatRule(Codicon.menuSubmenu)}
10561056
cursor: default;
10571057
}
10581058
1059-
.monaco-menu .monaco-action-bar.animated .action-item.active {
1060-
transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */
1061-
}
1062-
10631059
.monaco-menu .monaco-action-bar .action-item .icon,
10641060
.monaco-menu .monaco-action-bar .action-item .codicon {
10651061
display: inline-block;

src/vs/workbench/browser/parts/compositeBar.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ export class CompositeBar extends Widget implements ICompositeBar {
221221
orientation: this.options.orientation,
222222
ariaLabel: localize('activityBarAriaLabel', "Active View Switcher"),
223223
ariaRole: 'tablist',
224-
animated: false,
225224
preventLoopNavigation: this.options.preventLoopNavigation,
226225
triggerKeys: { keyDown: true }
227226
}));

src/vs/workbench/browser/parts/globalCompositeBar.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export class GlobalCompositeBar extends Disposable {
9797
},
9898
orientation: ActionsOrientation.VERTICAL,
9999
ariaLabel: localize('manage', "Manage"),
100-
animated: false,
101100
preventLoopNavigation: true
102101
}));
103102

src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ export abstract class AbstractRuntimeExtensionsEditor extends EditorPane {
241241

242242
const msgContainer = append(desc, $('div.msg'));
243243

244-
const actionbar = new ActionBar(desc, { animated: false });
244+
const actionbar = new ActionBar(desc);
245245
actionbar.onDidRun(({ error }) => error && this._notificationService.error(error));
246246

247-
248247
const timeContainer = append(element, $('.time'));
249248
const activationTime = append(timeContainer, $('div.activation-time'));
250249
const profileTime = append(timeContainer, $('div.profile-time'));

src/vs/workbench/contrib/extensions/browser/extensionEditor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class NavBar extends Disposable {
9999
super();
100100
const element = append(container, $('.navbar'));
101101
this.actions = [];
102-
this.actionbar = this._register(new ActionBar(element, { animated: false }));
102+
this.actionbar = this._register(new ActionBar(element));
103103
}
104104

105105
push(id: string, label: string, tooltip: string): void {
@@ -336,7 +336,6 @@ export class ExtensionEditor extends EditorPane {
336336

337337
const actionsAndStatusContainer = append(details, $('.actions-status-container'));
338338
const extensionActionBar = this._register(new ActionBar(actionsAndStatusContainer, {
339-
animated: false,
340339
actionViewItemProvider: (action: IAction) => {
341340
if (action instanceof ExtensionDropDownAction) {
342341
return action.createActionViewItem();

src/vs/workbench/contrib/extensions/browser/extensionsList.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export class Renderer implements IPagedRenderer<IExtension, ITemplateData> {
9898
const verifiedPublisherWidget = this.instantiationService.createInstance(VerifiedPublisherWidget, append(publisher, $(`.verified-publisher`)), true);
9999
const publisherDisplayName = append(publisher, $('.publisher-name.ellipsis'));
100100
const actionbar = new ActionBar(footer, {
101-
animated: false,
102101
actionViewItemProvider: (action: IAction) => {
103102
if (action instanceof ActionWithDropDownAction) {
104103
return new ExtensionActionWithDropdownActionViewItem(action, { icon: true, label: true, menuActionsOrProvider: { getActions: () => action.menuActions }, menuActionClassNames: (action.class || '').split(' ') }, this.contextMenuService);

src/vs/workbench/contrib/markers/browser/markersTable.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ class MarkerSeverityColumnRenderer implements ITableRenderer<MarkerTableItem, IM
7474

7575
const actionBarColumn = DOM.append(container, $('.actions'));
7676
const actionBar = new ActionBar(actionBarColumn, {
77-
actionViewItemProvider: (action: IAction) => action.id === QuickFixAction.ID ? this.instantiationService.createInstance(QuickFixActionViewItem, <QuickFixAction>action) : undefined,
78-
animated: false
77+
actionViewItemProvider: (action: IAction) => action.id === QuickFixAction.ID ? this.instantiationService.createInstance(QuickFixActionViewItem, <QuickFixAction>action) : undefined
7978
});
8079

8180
return { actionBar, icon };

src/vs/workbench/contrib/preferences/browser/keybindingsEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ class ActionsColumnRenderer implements ITableRenderer<IKeybindingItemEntry, IAct
851851

852852
renderTemplate(container: HTMLElement): IActionsColumnTemplateData {
853853
const element = DOM.append(container, $('.actions'));
854-
const actionBar = new ActionBar(element, { animated: false });
854+
const actionBar = new ActionBar(element);
855855
return { actionBar };
856856
}
857857

src/vs/workbench/contrib/preferences/browser/preferencesWidgets.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ export class SettingsTargetsWidget extends Widget {
252252
orientation: ActionsOrientation.HORIZONTAL,
253253
focusOnlyEnabledItems: true,
254254
ariaLabel: localize('settingsSwitcherBarAriaLabel', "Settings Switcher"),
255-
animated: false,
256255
actionViewItemProvider: (action: IAction) => action.id === 'folderSettings' ? this.folderSettings : undefined
257256
}));
258257

0 commit comments

Comments
 (0)