提交 d9299d95 编写于 作者: R Rob Lourens

Settings editor - change "configured" to "modified"

上级 9a3cc114
......@@ -89,11 +89,11 @@ enum SearchResultIdx {
const $ = DOM.$;
export const configuredItemForeground = registerColor('settings.configuredItemForeground', {
export const modifiedItemForeground = registerColor('settings.modifiedItemForeground', {
light: '#019001',
dark: '#73C991',
hc: '#73C991'
}, localize('configuredItemForeground', "The foreground color for a configured setting."));
}, localize('modifiedItemForeground', "The foreground color for a modified setting."));
export class SettingsEditor2 extends BaseEditor {
......@@ -221,7 +221,7 @@ export class SettingsEditor2 extends BaseEditor {
this.showConfiguredSettingsOnlyCheckbox = DOM.append(headerControlsContainerRight, $('input#configured-only-checkbox'));
this.showConfiguredSettingsOnlyCheckbox.type = 'checkbox';
const showConfiguredSettingsOnlyLabel = <HTMLLabelElement>DOM.append(headerControlsContainerRight, $('label.configured-only-label'));
showConfiguredSettingsOnlyLabel.textContent = localize('showOverriddenOnly', "Show configured only");
showConfiguredSettingsOnlyLabel.textContent = localize('showOverriddenOnly', "Show modified only");
showConfiguredSettingsOnlyLabel.htmlFor = 'configured-only-checkbox';
this._register(DOM.addDisposableListener(this.showConfiguredSettingsOnlyCheckbox, 'change', e => this.onShowConfiguredOnlyClicked()));
......@@ -840,7 +840,7 @@ class SettingItemRenderer implements IRenderer<ISettingItemEntry, ISettingItemTe
}
template.toDispose.push(resetButton);
const alsoConfiguredInLabel = localize('alsoConfiguredIn', "Also configured in:");
const alsoConfiguredInLabel = localize('alsoConfiguredIn', "Also modified in:");
template.overridesElement.textContent = entry.overriddenScopeList.length ? `(${alsoConfiguredInLabel} ${entry.overriddenScopeList.join(', ')})` :
'';
}
......@@ -909,9 +909,9 @@ class SettingItemRenderer implements IRenderer<ISettingItemEntry, ISettingItemTe
}
registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
const configuredItemForegroundColor = theme.getColor(configuredItemForeground);
if (configuredItemForegroundColor) {
collector.addRule(`.settings-editor > .settings-body > .settings-list-container .monaco-list-row.is-configured .setting-item-title { color: ${configuredItemForegroundColor}; }`);
const modifiedItemForegroundColor = theme.getColor(modifiedItemForeground);
if (modifiedItemForegroundColor) {
collector.addRule(`.settings-editor > .settings-body > .settings-list-container .monaco-list-row.is-configured .setting-item-title { color: ${modifiedItemForegroundColor}; }`);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册