mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-14 14:56:33 +00:00
PROEDITOR-47: FIxed the visibility of close button
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
d9e71c7e0d
commit
7244694bd3
@ -216,6 +216,9 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
|
|||||||
bind(ScmContribution).to(SilentScmContribution).inSingletonScope();
|
bind(ScmContribution).to(SilentScmContribution).inSingletonScope();
|
||||||
unbind(SearchInWorkspaceFrontendContribution);
|
unbind(SearchInWorkspaceFrontendContribution);
|
||||||
bind(SearchInWorkspaceFrontendContribution).to(SilentSearchInWorkspaceContribution).inSingletonScope();
|
bind(SearchInWorkspaceFrontendContribution).to(SilentSearchInWorkspaceContribution).inSingletonScope();
|
||||||
|
} else {
|
||||||
|
// We use this CSS class on the body to modify the visibbility of the close button for the editors and views.
|
||||||
|
document.body.classList.add(ArduinoAdvancedMode.LS_ID);
|
||||||
}
|
}
|
||||||
unbind(FrontendApplication);
|
unbind(FrontendApplication);
|
||||||
bind(FrontendApplication).to(CustomFrontendApplication).inSingletonScope();
|
bind(FrontendApplication).to(CustomFrontendApplication).inSingletonScope();
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/* Do not show the `close` icon for editor, but show the dirty state. */
|
/* Do not show the `close` icon for editor, but show the dirty state if not in pro-mode. */
|
||||||
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable:hover > .p-TabBar-tabCloseIcon,
|
body:not(.arduino-advanced-mode) .p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable:hover > .p-TabBar-tabCloseIcon,
|
||||||
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-current > .p-TabBar-tabCloseIcon {
|
body:not(.arduino-advanced-mode) .p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-current > .p-TabBar-tabCloseIcon {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.theia-mod-dirty:hover > .p-TabBar-tabCloseIcon,
|
body:not(.arduino-advanced-mode) .p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.theia-mod-dirty:hover > .p-TabBar-tabCloseIcon,
|
||||||
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.theia-mod-dirty > .p-TabBar-tabCloseIcon:hover {
|
body:not(.arduino-advanced-mode) .p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable.theia-mod-dirty > .p-TabBar-tabCloseIcon:hover {
|
||||||
background-size: 10px;
|
background-size: 10px;
|
||||||
background-image: var(--theia-icon-circle);
|
background-image: var(--theia-icon-circle);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user