|
78 | 78 | #variable-explorer-data-grid .rdg-selected { |
79 | 79 | visibility: hidden; |
80 | 80 | } |
| 81 | + |
| 82 | +// High contrast theme changes |
| 83 | + |
| 84 | +// Notifications-background and line-highlight-border don't work in high contrast mode, so skip the header color in high contrast themes |
| 85 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Header { |
| 86 | + background-color: var(--override-background, var(--vscode-editor-background)); |
| 87 | + border-color: var(--override-foreground, var(--vscode-editor-foreground)); |
| 88 | +} |
| 89 | + |
| 90 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-HeaderCell { |
| 91 | + background-color: var(--override-background, var(--vscode-editor-background)); |
| 92 | + border-color: var(--override-foreground, var(--vscode-editor-foreground)); |
| 93 | +} |
| 94 | + |
| 95 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Row--odd { |
| 96 | + background-color: var(--override-background, var(--vscode-editor-background)); |
| 97 | + border-color: var(--override-foreground, var(--vscode-editor-foreground)); |
| 98 | +} |
| 99 | + |
| 100 | +// Since we have removed zebra striping in HC mode, add back in grid lines |
| 101 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Cell { |
| 102 | + border-style: solid; |
| 103 | + border-width: 1px; |
| 104 | + border-color: var(--override-foreground, var(--vscode-editor-foreground)); |
| 105 | +} |
| 106 | + |
| 107 | + |
| 108 | +// HC inverts selection colors, so use the selection foreground color on hover |
| 109 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Cell:hover { |
| 110 | + color: var(--override-selection-foreground, var(--vscode-editor-selectionForeground)); |
| 111 | +} |
| 112 | + |
| 113 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Row:hover { |
| 114 | + color: var(--override-selection-foreground, var(--vscode-editor-selectionForeground)); |
| 115 | +} |
| 116 | + |
| 117 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Row:hover .react-grid-Cell { |
| 118 | + color: var(--override-selection-foreground, var(--vscode-editor-selectionForeground)); |
| 119 | +} |
| 120 | + |
| 121 | +// HC inverts selection, which messes up our icons, just keep them with the same foreground / background combo |
| 122 | +body.vscode-high-contrast #variable-explorer-data-grid .react-grid-Row:hover .react-grid-Cell .variable-explorer-button-cell { |
| 123 | + color: var(--override-foreground, var(--vscode-editor-foreground)); |
| 124 | + background-color: var(--override-background, var(--vscode-editor-background)); |
| 125 | +} |
| 126 | + |
| 127 | + |
0 commit comments