Skip to content

Commit 8065690

Browse files
committed
Make pref sync button themable
Fix microsoft#100312
1 parent 7df9c59 commit 8065690

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { IProductService } from 'vs/platform/product/common/productService';
3535
import { IStorageService, StorageScope } from 'vs/platform/storage/common/storage';
3636
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
3737
import { badgeBackground, badgeForeground, contrastBorder, editorForeground } from 'vs/platform/theme/common/colorRegistry';
38-
import { attachStylerCallback } from 'vs/platform/theme/common/styler';
38+
import { attachStylerCallback, attachButtonStyler } from 'vs/platform/theme/common/styler';
3939
import { IThemeService } from 'vs/platform/theme/common/themeService';
4040
import { IStorageKeysSyncRegistryService } from 'vs/platform/userDataSync/common/storageKeys';
4141
import { getUserDataSyncStore, IUserDataSyncService, SyncStatus, IUserDataAutoSyncService } from 'vs/platform/userDataSync/common/userDataSync';
@@ -1402,13 +1402,15 @@ class SyncControls extends Disposable {
14021402
container: HTMLElement,
14031403
@ICommandService private readonly commandService: ICommandService,
14041404
@IUserDataSyncService private readonly userDataSyncService: IUserDataSyncService,
1405-
@IUserDataAutoSyncService private readonly userDataAutoSyncService: IUserDataAutoSyncService
1405+
@IUserDataAutoSyncService private readonly userDataAutoSyncService: IUserDataAutoSyncService,
1406+
@IThemeService themeService: IThemeService,
14061407
) {
14071408
super();
14081409

14091410
const headerRightControlsContainer = DOM.append(container, $('.settings-right-controls'));
14101411
const turnOnSyncButtonContainer = DOM.append(headerRightControlsContainer, $('.turn-on-sync'));
14111412
this.turnOnSyncButton = this._register(new Button(turnOnSyncButtonContainer, { title: true }));
1413+
this._register(attachButtonStyler(this.turnOnSyncButton, themeService));
14121414
this.lastSyncedLabel = DOM.append(headerRightControlsContainer, $('.last-synced-label'));
14131415
DOM.hide(this.lastSyncedLabel);
14141416

0 commit comments

Comments
 (0)