mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-09 04:16:38 +00:00
Fixed dirty indicator of uncloseable widgets.
Closes #1034. Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
d40401437a
commit
3afc2d7e4b
@ -1,8 +1,7 @@
|
|||||||
/* Show the dirty indicator on unclosable widgets. On hover, it should still show the dot instead of the X. */
|
/* Show the dirty indicator on unclosable widgets. On hover, it should still show the dot instead of the X. */
|
||||||
/* https://github.com/arduino/arduino-pro-ide/issues/380 */
|
/* https://github.com/arduino/arduino-pro-ide/issues/380 */
|
||||||
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.theia-mod-dirty > .p-TabBar-tabCloseIcon:hover {
|
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.a-mod-uncloseable.theia-mod-dirty > .p-TabBar-tabCloseIcon:before {
|
||||||
background-size: 13px;
|
content: "\ea71";
|
||||||
background-image: var(--theia-icon-circle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.monaco-list-row.show-file-icons.focused {
|
.monaco-list-row.show-file-icons.focused {
|
||||||
|
@ -66,6 +66,11 @@ export class WidgetManager extends TheiaWidgetManager {
|
|||||||
if (title.closable) {
|
if (title.closable) {
|
||||||
title.closable = false;
|
title.closable = false;
|
||||||
}
|
}
|
||||||
|
// Show the dirty indicator on uncloseable widgets when hovering over the title. Instead of showing the `X` for close.
|
||||||
|
const uncloseableClass = 'a-mod-uncloseable';
|
||||||
|
if (!title.className.includes(uncloseableClass)) {
|
||||||
|
title.className += title.className + ` ${uncloseableClass}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user