fix(editor): Fix issues in dark mode (#9068)

Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
Tomi Turtiainen
2024-04-08 09:21:54 +03:00
committed by GitHub
parent df56153f8b
commit 7467aa30e6
8 changed files with 14 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ export default defineComponent({
z-index: 10;
width: 100%;
height: calc(100% - 50px);
background-color: var(--color-background-base);
background-color: var(--color-run-data-background);
overflow: hidden;
text-align: center;

View File

@@ -1294,10 +1294,10 @@ export default defineComponent({
&.error {
path {
fill: var(--node-error-output-color);
fill: var(--color-node-error-output-text-color);
}
rect {
stroke: var(--node-error-output-color);
stroke: var(--color-node-error-output-text-color);
}
}
@@ -1436,7 +1436,7 @@ export default defineComponent({
}
.node-output-endpoint-label.node-connection-category-error {
color: var(--node-error-output-color);
color: var(--color-node-error-output-text-color);
}
.node-output-endpoint-label {

View File

@@ -130,7 +130,7 @@ defineExpose({
}
.clear {
background-color: $node-creator-search-clear-color;
background-color: transparent;
padding: 0;
border: none;
cursor: pointer;

View File

@@ -600,7 +600,7 @@ export const nodeBase = defineComponent({
nodeTypeData,
this.__getEndpointColor(NodeConnectionType.Main),
),
fill: 'var(--node-error-output-color)',
fill: 'var(--color-danger)',
},
cssClass: `dot-${type}-endpoint`,
};

View File

@@ -170,7 +170,6 @@
var(--node-type-ai_vectorStore-color-s),
var(--node-type-background-l)
);
--node-error-output-color: #991818;
--chat--spacing: var(--spacing-s);

View File

@@ -113,7 +113,7 @@ export const CONNECTOR_PAINT_STYLE_DATA: PaintStyle = {
export const getConnectorColor = (type: ConnectionTypes, category?: string): string => {
if (category === 'error') {
return '--node-error-output-color';
return '--color-node-error-output-text-color';
}
if (type === NodeConnectionType.Main) {