Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS for Smart Connector UIExtension #188

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import { initializeWorkflowDiagramContainer } from '@eclipse-glsp-examples/workflow-glsp/lib';
import { ContainerConfiguration } from '@eclipse-glsp/client';
import { ContainerConfiguration, selectionPaletteModule } from '@eclipse-glsp/client';
import { GLSPDiagramConfiguration } from '@eclipse-glsp/theia-integration';
import { Container, injectable } from '@theia/core/shared/inversify';

Expand All @@ -26,6 +26,9 @@ export class WorkflowDiagramConfiguration extends GLSPDiagramConfiguration {
diagramType: string = WorkflowLanguage.diagramType;

configureContainer(container: Container, ...containerConfiguration: ContainerConfiguration): Container {
containerConfiguration = containerConfiguration.concat(containerConfiguration, [{
add: selectionPaletteModule
}]);
initializeWorkflowDiagramContainer(container, ...containerConfiguration);
return container;
}
Expand Down
41 changes: 41 additions & 0 deletions packages/theia-integration/css/selection-palette.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* expand button */

#selection-palette-expand-button {
background: var(--theia-titleBar-activeBackground);
color: var(--theia-titleBar-activeForeground);
}

/* search bar */

.selection-palette-search {
background: var(--theia-input-background);
color: var(--theia-input-foreground);
border: var(--theia-border-width) solid var(--theia-input-border);
font-family: var(--theia-ui-font-family);
font-size: var(--theia-ui-font-size1);
line-height: var(--theia-content-line-height);
}

/* header */

.selection-palette-group-header {
background: var(--theia-titleBar-activeBackground);
color: var(--theia-titleBar-activeForeground);
}

.selection-palette-group-header:hover:not(.clicked) {
background: var(--theia-menubar-selectionBackground);
}

/* single containers */

.selection-palette-group-container {
background: var(--theia-menu-background);
color: var(--theia-titleBar-activeForeground);
}

/* single item */

.selection-palette-button:hover:not(.clicked) {
background: var(--theia-list-hoverBackground);
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import '../../css/decoration.css';
import '../../css/diagram.css';
import '../../css/theia-dialogs.css';
import '../../css/tool-palette.css';
import '../../css/selection-palette.css';
import {
GLSPContribution,
WebSocketConnectionInfo,
Expand Down