Skip to content

Commit 4a941b1

Browse files
committed
Merge branch 'joao/update-list-styles' into main
2 parents 59afea5 + 250c226 commit 4a941b1

File tree

18 files changed

+51
-40
lines changed

18 files changed

+51
-40
lines changed

extensions/theme-abyss/themes/abyss-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303

304304
"list.activeSelectionBackground": "#08286b",
305305
// "list.activeSelectionForeground": "",
306-
"list.focusBackground": "#08286b",
306+
"quickInput.list.focusBackground": "#08286b",
307307
"list.hoverBackground": "#061940",
308308
"list.inactiveSelectionBackground": "#152037",
309309
"list.dropBackground": "#041D52",

extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"list.highlightForeground": "#e3b583",
1111
"list.activeSelectionBackground": "#7c5021",
1212
"list.hoverBackground": "#7c502166",
13-
"list.focusBackground": "#7c5021AA",
13+
"quickInput.list.focusBackground": "#7c5021AA",
1414
"list.inactiveSelectionBackground": "#645342",
1515
"pickerGroup.foreground": "#e3b583",
1616
"pickerGroup.border": "#e3b583",

extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"colors": {
44
"dropdown.background": "#525252",
55
"list.activeSelectionBackground": "#707070",
6-
"list.focusBackground": "#707070",
6+
"quickInput.list.focusBackground": "#707070",
77
"list.inactiveSelectionBackground": "#4e4e4e",
88
"list.hoverBackground": "#444444",
99
"list.highlightForeground": "#e58520",

extensions/theme-monokai/themes/monokai-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"colors": {
1010
"dropdown.background": "#414339",
1111
"list.activeSelectionBackground": "#75715E",
12-
"list.focusBackground": "#414339",
12+
"quickInput.list.focusBackground": "#414339",
1313
"dropdown.listBackground": "#1e1f1c",
1414
"list.inactiveSelectionBackground": "#414339",
1515
"list.hoverBackground": "#3e3d32",

extensions/theme-quietlight/themes/quietlight-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@
473473
"pickerGroup.foreground": "#A6B39B",
474474
"pickerGroup.border": "#749351",
475475
"list.activeSelectionForeground": "#6c6c6c",
476-
"list.focusBackground": "#CADEB9",
476+
"quickInput.list.focusBackground": "#CADEB9",
477477
"list.hoverBackground": "#e0e0e0",
478478
"list.activeSelectionBackground": "#c4d9b1",
479479
"list.inactiveSelectionBackground": "#d3dbcd",

extensions/theme-red/themes/Red-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"list.activeSelectionBackground": "#880000",
5050
"list.inactiveSelectionBackground": "#770000",
5151
"list.dropBackground": "#662222",
52-
"list.focusBackground": "#660000",
52+
"quickInput.list.focusBackground": "#660000",
5353
"list.highlightForeground": "#ff4444",
5454
"pickerGroup.foreground": "#cc9999",
5555
"pickerGroup.border": "#ff000033",

extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350

351351
"list.activeSelectionBackground": "#005A6F",
352352
// "list.activeSelectionForeground": "",
353-
"list.focusBackground": "#005A6F",
353+
"quickInput.list.focusBackground": "#005A6F",
354354
"list.hoverBackground": "#004454AA",
355355
"list.inactiveSelectionBackground": "#00445488",
356356
"list.dropBackground": "#00445488",

extensions/theme-solarized-light/themes/solarized-light-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350

351351
"list.activeSelectionBackground": "#DFCA88",
352352
"list.activeSelectionForeground": "#6C6C6C",
353-
"list.focusBackground": "#DFCA8866",
353+
"quickInput.list.focusBackground": "#DFCA8866",
354354
"list.hoverBackground": "#DFCA8844",
355355
"list.inactiveSelectionBackground": "#D1CBB8",
356356
"list.highlightForeground": "#B58900",

extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"errorForeground": "#a92049",
66
"input.background": "#001733",
77
"dropdown.background": "#001733",
8-
"list.focusBackground": "#ffffff60",
8+
"quickInput.list.focusBackground": "#ffffff60",
99
"list.activeSelectionBackground": "#ffffff60",
1010
"list.inactiveSelectionBackground": "#ffffff40",
1111
"list.hoverBackground": "#ffffff30",

src/vs/base/browser/ui/list/listWidget.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,11 @@ export class DefaultStyleController implements IStyleController {
761761
`);
762762
}
763763

764+
if (styles.listInactiveFocusForeground) {
765+
content.push(`.monaco-list${suffix} .monaco-list-row.focused { color: ${styles.listInactiveFocusForeground}; }`);
766+
content.push(`.monaco-list${suffix} .monaco-list-row.focused:hover { color: ${styles.listInactiveFocusForeground}; }`); // overwrite :hover style in this case!
767+
}
768+
764769
if (styles.listInactiveFocusBackground) {
765770
content.push(`.monaco-list${suffix} .monaco-list-row.focused { background-color: ${styles.listInactiveFocusBackground}; }`);
766771
content.push(`.monaco-list${suffix} .monaco-list-row.focused:hover { background-color: ${styles.listInactiveFocusBackground}; }`); // overwrite :hover style in this case!
@@ -776,7 +781,7 @@ export class DefaultStyleController implements IStyleController {
776781
}
777782

778783
if (styles.listHoverBackground) {
779-
content.push(`.monaco-list${suffix}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${styles.listHoverBackground}; }`);
784+
content.push(`.monaco-list${suffix}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${styles.listHoverBackground}; }`);
780785
}
781786

782787
if (styles.listHoverForeground) {
@@ -867,6 +872,7 @@ export interface IListStyles {
867872
listFocusAndSelectionForeground?: Color;
868873
listInactiveSelectionBackground?: Color;
869874
listInactiveSelectionForeground?: Color;
875+
listInactiveFocusForeground?: Color;
870876
listInactiveFocusBackground?: Color;
871877
listHoverBackground?: Color;
872878
listHoverForeground?: Color;

0 commit comments

Comments
 (0)