Skip to content

Commit 9b25468

Browse files
authored
Status bar spinner is white in light themes and hard to see (microsoft#46083)
fixes microsoft#45191
1 parent 3a70cdf commit 9b25468

5 files changed

Lines changed: 24 additions & 39 deletions

File tree

src/vs/workbench/browser/parts/editor/editorPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
550550
if (this.partService.isCreated() && !errors.isPromiseCanceledError(error)) {
551551
const actions: INotificationActions = { primary: [] };
552552
if (errors.isErrorWithActions(error)) {
553-
actions.primary = error.actions;
553+
actions.primary = (error as errors.IErrorWithActions).actions;
554554
}
555555

556556
const handle = this.notificationService.notify({

src/vs/workbench/services/configuration/node/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class FolderConfiguration extends Disposable {
254254
for (let i = 0, len = events.length; i < len; i++) {
255255
const resource = events[i].resource;
256256
const isJson = paths.extname(resource.fsPath) === '.json';
257-
const isDeletedSettingsFolder = (events[i].type === FileChangeType.DELETED && paths.isEqual(paths.basename(resource.fsPath), this.configFolderRelativePath));
257+
const isDeletedSettingsFolder = (events[i].type === FileChangeType.DELETED && paths.basename(resource.fsPath) === this.configFolderRelativePath);
258258
if (!isJson && !isDeletedSettingsFolder) {
259259
continue; // only JSON files or the actual settings folder
260260
}

src/vs/workbench/services/progress/browser/media/progress.svg

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/vs/workbench/services/progress/browser/media/progressService2.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
.monaco-workbench > .part.statusbar > .statusbar-item.progress {
7-
background-image: url(progress.svg);
8-
background-repeat: no-repeat;
9-
background-position: left;
10-
padding-left: 14px;
11-
display: inline;
7+
padding-left: 5px;
8+
}
9+
10+
.monaco-workbench > .part.statusbar > .statusbar-item.progress .spinner-container {
11+
padding-right: 5px;
1212
}
1313

1414
.monaco-workbench .progress-badge > .badge-content {

src/vs/workbench/services/progress/browser/progressService2.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,25 @@ class WindowProgressItem implements IStatusbarItem {
3030

3131
render(element: HTMLElement): IDisposable {
3232
this._element = element;
33-
this._label = new OcticonLabel(this._element);
3433
this._element.classList.add('progress');
34+
35+
const container = document.createElement('span');
36+
this._element.appendChild(container);
37+
38+
const spinnerContainer = document.createElement('span');
39+
spinnerContainer.classList.add('spinner-container');
40+
container.appendChild(spinnerContainer);
41+
42+
const spinner = new OcticonLabel(spinnerContainer);
43+
spinner.text = '$(sync~spin)';
44+
45+
const labelContainer = document.createElement('span');
46+
container.appendChild(labelContainer);
47+
48+
this._label = new OcticonLabel(labelContainer);
49+
3550
this.hide();
51+
3652
return null;
3753
}
3854

0 commit comments

Comments
 (0)