Skip to content

Commit 562b3db

Browse files
authored
moves css rules (microsoft#166532)
1 parent e109887 commit 562b3db

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
.monaco-link {
7+
color: var(--vscode-textLink-foreground);
8+
}
9+
10+
.monaco-link:hover {
11+
color: var(--vscode-textLink-activeForeground);
12+
}
13+

src/vs/platform/opener/browser/link.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { Event } from 'vs/base/common/event';
1111
import { KeyCode } from 'vs/base/common/keyCodes';
1212
import { Disposable } from 'vs/base/common/lifecycle';
1313
import { IOpenerService } from 'vs/platform/opener/common/opener';
14-
import { textLinkActiveForeground, textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
15-
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
1614

1715
export interface ILinkDescriptor {
1816
readonly label: string | HTMLElement;
@@ -119,15 +117,3 @@ export class Link extends Disposable {
119117
this.enabled = true;
120118
}
121119
}
122-
123-
registerThemingParticipant((theme, collector) => {
124-
const textLinkForegroundColor = theme.getColor(textLinkForeground);
125-
if (textLinkForegroundColor) {
126-
collector.addRule(`.monaco-link { color: ${textLinkForegroundColor}; }`);
127-
}
128-
129-
const textLinkActiveForegroundColor = theme.getColor(textLinkActiveForeground);
130-
if (textLinkActiveForegroundColor) {
131-
collector.addRule(`.monaco-link:hover { color: ${textLinkActiveForegroundColor}; }`);
132-
}
133-
});

0 commit comments

Comments
 (0)