Support for list.inactiveSelectionForeground (fixes #25774)

This commit is contained in:
Benjamin Pasero
2017-05-08 17:48:34 +02:00
parent 6605a9ec3f
commit 8425399f03
5 changed files with 13 additions and 2 deletions

View File

@@ -410,6 +410,7 @@ export interface IListStyles {
listFocusAndSelectionBackground?: Color;
listFocusAndSelectionForeground?: Color;
listInactiveSelectionBackground?: Color;
listInactiveSelectionForeground?: Color;
listInactiveFocusBackground?: Color;
listHoverBackground?: Color;
listDropBackground?: Color;
@@ -844,6 +845,10 @@ export class List<T> implements ISpliceable<T>, IDisposable {
content.push(`.monaco-list.${this.idPrefix} .monaco-list-row.selected:hover { background-color: ${styles.listInactiveSelectionBackground}; }`); // overwrite :hover style in this case!
}
if (styles.listInactiveSelectionForeground) {
content.push(`.monaco-list.${this.idPrefix} .monaco-list-row.selected { color: ${styles.listInactiveSelectionForeground}; }`);
}
if (styles.listHoverBackground) {
content.push(`.monaco-list.${this.idPrefix} .monaco-list-row:hover { background-color: ${styles.listHoverBackground}; }`);
}