File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/vs/workbench/contrib/accessibility/browser Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,15 @@ export class UnfocusedViewDimmingContribution extends Disposable implements IWor
3434 opacity = clamp ( opacityConfig , 0.2 , 1 ) ;
3535 }
3636
37+ const filterRule = `filter: opacity(${ opacity } );` ;
3738 const rules = new Set < string > ( ) ;
38- rules . add ( `.monaco-workbench .terminal.xterm:not(.focus) { filter: opacity(${ opacity } ); }` ) ;
39- rules . add ( `.monaco-workbench .editor-instance .monaco-editor:not(.focused) { filter: opacity(${ opacity } ); }` ) ;
39+
40+ // Terminal tabs
41+ rules . add ( `.monaco-workbench .pane-body.integrated-terminal:not(:focus-within) .tabs-container { ${ filterRule } }` ) ;
42+ // Terminals
43+ rules . add ( `.monaco-workbench .pane-body.integrated-terminal .xterm:not(.focus) { ${ filterRule } }` ) ;
44+ // Editors
45+ rules . add ( `.monaco-workbench .editor-instance .monaco-editor:not(.focused) { ${ filterRule } }` ) ;
4046
4147 elStyle . textContent = [ ...rules ] . join ( '\n' ) ;
4248 } ) ) ;
You can’t perform that action at this time.
0 commit comments