use editorErrorFg
This commit is contained in:
parent
6673ba9c46
commit
27dfcd4677
1 changed files with 3 additions and 4 deletions
|
@ -37,7 +37,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
|
|||
import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent';
|
||||
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
|
||||
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||
import { editorBackground, errorForeground, focusBorder, foreground, inputValidationErrorBackground, inputValidationErrorBorder, inputValidationErrorForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { editorBackground, editorErrorForeground, errorForeground, focusBorder, foreground, inputValidationErrorBackground, inputValidationErrorBorder, inputValidationErrorForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { attachButtonStyler, attachInputBoxStyler, attachSelectBoxStyler, attachStyler, attachStylerCallback } from 'vs/platform/theme/common/styler';
|
||||
import { ICssStyleCollector, IColorTheme, IThemeService, registerThemingParticipant } from 'vs/platform/theme/common/themeService';
|
||||
import { getIgnoredSettings } from 'vs/platform/userDataSync/common/settingsMerge';
|
||||
|
@ -60,7 +60,6 @@ import { ILogService } from 'vs/platform/log/common/log';
|
|||
import { settingsMoreActionIcon } from 'vs/workbench/contrib/preferences/browser/preferencesIcons';
|
||||
import { IWorkbenchConfigurationService } from 'vs/workbench/services/configuration/common/configuration';
|
||||
import { SettingsTarget } from 'vs/workbench/contrib/preferences/browser/preferencesWidgets';
|
||||
import { untrustedForegroundColor } from 'vs/workbench/contrib/workspace/browser/workspaceTrustColors';
|
||||
|
||||
const $ = DOM.$;
|
||||
|
||||
|
@ -1537,8 +1536,8 @@ export class SettingUntrustedRenderer extends AbstractSettingRenderer implements
|
|||
const manageWorkspaceTrustLabel = localize('manageWorkspaceTrust', "Manage Workspace Trust");
|
||||
const trustLabelElement = $('.setting-item-trust-description');
|
||||
const untrustedWorkspaceIcon = DOM.append(trustLabelElement, $('span.codicon.codicon-workspace-untrusted'));
|
||||
template.toDispose.add(attachStylerCallback(this._themeService, { untrustedForegroundColor }, colors => {
|
||||
untrustedWorkspaceIcon.style.setProperty('--workspace-trust-state-untrusted-color', colors.untrustedForegroundColor?.toString() || '');
|
||||
template.toDispose.add(attachStylerCallback(this._themeService, { editorErrorForeground }, colors => {
|
||||
untrustedWorkspaceIcon.style.setProperty('--workspace-trust-state-untrusted-color', colors.editorErrorForeground?.toString() || '');
|
||||
}));
|
||||
const element = DOM.append(trustLabelElement, $('span'));
|
||||
element.textContent = localize('trustLabel', "This setting can only be applied in a trusted workspace");
|
||||
|
|
Loading…
Reference in a new issue