File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
arduino-ide-extension/src/browser Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11/* Show the dirty indicator on unclosable widgets. On hover, it should still show the dot instead of the X. */
22/* https://github.com/arduino/arduino-pro-ide/issues/380 */
3- .p-TabBar .theia-app-centers .p-TabBar-tab .p-mod-closable .theia-mod-dirty > .p-TabBar-tabCloseIcon : hover {
4- background-size : 13px ;
5- background-image : var (--theia-icon-circle );
3+ .p-TabBar .theia-app-centers .p-TabBar-tab .p-mod-closable .a-mod-uncloseable .theia-mod-dirty > .p-TabBar-tabCloseIcon : before {
4+ content : "\ea71" ;
65}
76
87.monaco-list-row .show-file-icons .focused {
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ export class WidgetManager extends TheiaWidgetManager {
6666 if ( title . closable ) {
6767 title . closable = false ;
6868 }
69+ // Show the dirty indicator on uncloseable widgets when hovering over the title. Instead of showing the `X` for close.
70+ const uncloseableClass = 'a-mod-uncloseable' ;
71+ if ( ! title . className . includes ( uncloseableClass ) ) {
72+ title . className += title . className + ` ${ uncloseableClass } ` ;
73+ }
6974 }
7075
7176 /**
You can’t perform that action at this time.
0 commit comments