Skip to content

Commit

Permalink
adapter css variable for viewFilter #165169 (#166977)
Browse files Browse the repository at this point in the history
* adapter css variable for viewFilter

* adapter css variable for style

* adapter css variable for import customEditors

* 💄

* Revert "adapter css variable for viewFilter"

This reverts commit 9f6ed6b.

* Revert "adapter css variable for style"

This reverts commit ab2e4c6.
  • Loading branch information
weartist authored Jan 10, 2023
1 parent 6ca08ef commit 1d9f8c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/vs/workbench/contrib/customEditor/browser/customEditors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import 'vs/css!./media/customEditor';
import { coalesce } from 'vs/base/common/arrays';
import { Emitter, Event } from 'vs/base/common/event';
import { Disposable, DisposableStore, IDisposable, toDisposable } from 'vs/base/common/lifecycle';
Expand All @@ -17,8 +18,6 @@ import { FileOperation, IFileService } from 'vs/platform/files/common/files';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { Registry } from 'vs/platform/registry/common/platform';
import { IStorageService } from 'vs/platform/storage/common/storage';
import * as colorRegistry from 'vs/platform/theme/common/colorRegistry';
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
import { IUriIdentityService } from 'vs/platform/uriIdentity/common/uriIdentity';
import { DEFAULT_EDITOR_ASSOCIATION, EditorExtensions, GroupIdentifier, IEditorFactoryRegistry, IResourceDiffEditorInput } from 'vs/workbench/common/editor';
import { DiffEditorInput } from 'vs/workbench/common/editor/diffEditorInput';
Expand Down Expand Up @@ -262,10 +261,3 @@ export class CustomEditorService extends Disposable implements ICustomEditorServ
}
}
}

registerThemingParticipant((theme, collector) => {
const shadow = theme.getColor(colorRegistry.scrollbarShadow);
if (shadow) {
collector.addRule(`.webview.modified { box-shadow: -6px 0 5px -5px ${shadow}; }`);
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

.webview.modified {
box-shadow: -6px 0 5px -5px var(--vscode-scrollbar-shadow);
}

0 comments on commit 1d9f8c7

Please sign in to comment.