mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:52:24 +00:00
Add element with tooltip as modifided indicator
This commit is contained in:
parent
0c83ba6b80
commit
304284313e
3 changed files with 16 additions and 4 deletions
|
@ -281,17 +281,24 @@
|
|||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.settings-editor > .settings-body > .settings-tree-container .setting-item.is-configured::after {
|
||||
|
||||
.settings-editor > .settings-body > .settings-tree-container .setting-item > .setting-item-modified-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.settings-editor > .settings-body > .settings-tree-container .setting-item.is-configured > .setting-item-modified-indicator {
|
||||
display: block;
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
width: 2px;
|
||||
width: 6px;
|
||||
border-left-width: 2px;
|
||||
border-left-style: solid;
|
||||
left: 0px;
|
||||
top: 15px;
|
||||
bottom: 16px;
|
||||
}
|
||||
|
||||
.settings-editor > .settings-body > .settings-tree-container .setting-item-bool.setting-item.is-configured::after {
|
||||
.settings-editor > .settings-body > .settings-tree-container .setting-item-bool.is-configured > .setting-item-modified-indicator {
|
||||
bottom: 23px;
|
||||
}
|
||||
|
||||
|
|
|
@ -521,6 +521,8 @@ export class SettingsRenderer implements ITreeRenderer {
|
|||
const labelElement = DOM.append(labelCategoryContainer, $('span.setting-item-label'));
|
||||
const otherOverridesElement = DOM.append(titleElement, $('span.setting-item-overrides'));
|
||||
const descriptionElement = DOM.append(container, $('.setting-item-description'));
|
||||
const modifiedIndicatorElement = DOM.append(container, $('.setting-item-modified-indicator'));
|
||||
modifiedIndicatorElement.title = localize('modified', "Modified");
|
||||
|
||||
const valueElement = DOM.append(container, $('.setting-item-value'));
|
||||
const controlElement = DOM.append(valueElement, $('div.setting-item-control'));
|
||||
|
@ -660,6 +662,9 @@ export class SettingsRenderer implements ITreeRenderer {
|
|||
const descriptionAndValueElement = DOM.append(container, $('.setting-item-value-description'));
|
||||
const controlElement = DOM.append(descriptionAndValueElement, $('.setting-item-bool-control'));
|
||||
const descriptionElement = DOM.append(descriptionAndValueElement, $('.setting-item-description'));
|
||||
const modifiedIndicatorElement = DOM.append(container, $('.setting-item-modified-indicator'));
|
||||
modifiedIndicatorElement.title = localize('modified', "Modified");
|
||||
|
||||
|
||||
const deprecationWarningElement = DOM.append(container, $('.setting-item-deprecation-message'));
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
|
|||
|
||||
const modifiedItemIndicatorColor = theme.getColor(modifiedItemIndicator);
|
||||
if (modifiedItemIndicatorColor) {
|
||||
collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .setting-item.is-configured::after { background-color: ${modifiedItemIndicatorColor}; }`);
|
||||
collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .setting-item > .setting-item-modified-indicator { border-color: ${modifiedItemIndicatorColor}; }`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue