From 8bcc1c5c5af738650fe77366d140a986e628afb0 Mon Sep 17 00:00:00 2001 From: Marat Gubaidullin Date: Thu, 19 Sep 2024 15:10:10 -0400 Subject: [PATCH] VS Code Dark Mode Fix --- .../src/designer/property/DslProperties.css | 5 ++++ .../property/ComponentPropertyField.tsx | 4 +-- .../property/property/DslPropertyField.tsx | 6 ++-- .../property/KameletPropertyField.tsx | 4 +-- .../src/designer/property/DslProperties.css | 5 ++++ .../property/ComponentPropertyField.tsx | 4 +-- .../property/property/DslPropertyField.tsx | 6 ++-- .../property/KameletPropertyField.tsx | 4 +-- .../src/designer/property/DslProperties.css | 5 ++++ .../property/ComponentPropertyField.tsx | 4 +-- .../property/property/DslPropertyField.tsx | 6 ++-- .../property/KameletPropertyField.tsx | 4 +-- karavan-vscode/webview/index.css | 29 ++++++++++++++----- 13 files changed, 57 insertions(+), 29 deletions(-) diff --git a/karavan-app/src/main/webui/src/designer/property/DslProperties.css b/karavan-app/src/main/webui/src/designer/property/DslProperties.css index 371402898d4..97b97a38c02 100644 --- a/karavan-app/src/main/webui/src/designer/property/DslProperties.css +++ b/karavan-app/src/main/webui/src/designer/property/DslProperties.css @@ -263,3 +263,8 @@ .karavan .properties .component-headers .pf-v5-c-clipboard-copy.pf-m-inline { background-color: transparent; } + +.karavan .properties .value-changed { + background-color: yellow; +} + diff --git a/karavan-app/src/main/webui/src/designer/property/property/ComponentPropertyField.tsx b/karavan-app/src/main/webui/src/designer/property/property/ComponentPropertyField.tsx index 262e2eb562f..eed5d12a699 100644 --- a/karavan-app/src/main/webui/src/designer/property/property/ComponentPropertyField.tsx +++ b/karavan-app/src/main/webui/src/designer/property/property/ComponentPropertyField.tsx @@ -417,10 +417,10 @@ export function ComponentPropertyField(props: Props) { function getLabel(property: ComponentProperty, value: any) { - const bgColor = PropertyUtil.hasComponentPropertyValueChanged(property, value) ? 'yellow' : 'transparent'; + const labelClassName = PropertyUtil.hasComponentPropertyValueChanged(property, value) ? 'value-changed' : 'transparent'; return (
- {property.displayName} + {property.displayName}
) } diff --git a/karavan-app/src/main/webui/src/designer/property/property/DslPropertyField.tsx b/karavan-app/src/main/webui/src/designer/property/property/DslPropertyField.tsx index 0652e8bbe92..a7d9e2d8370 100644 --- a/karavan-app/src/main/webui/src/designer/property/property/DslPropertyField.tsx +++ b/karavan-app/src/main/webui/src/designer/property/property/DslPropertyField.tsx @@ -209,7 +209,7 @@ export function DslPropertyField(props: Props) { } function getLabel(property: PropertyMeta, value: any, isKamelet: boolean) { - const bgColor = PropertyUtil.hasDslPropertyValueChanged(property, value) ? 'yellow' : 'transparent'; + const labelClassName = PropertyUtil.hasDslPropertyValueChanged(property, value) ? 'value-changed' : ''; if (!isMultiValueField(property) && property.isObject && !property.isArray && !["ExpressionDefinition"].includes(property.type)) { const tooltip = value ? "Delete " + property.name : "Add " + property.name; const className = value ? "change-button delete-button" : "change-button add-button"; @@ -219,7 +219,7 @@ export function DslPropertyField(props: Props) { const icon = value ? () : (); return (
- {title} + {title} {tooltip}
}>