diff --git a/packages/eez-studio-ui/_stylesheets/project-editor.less b/packages/eez-studio-ui/_stylesheets/project-editor.less index 4ef27b89..3a6f610a 100644 --- a/packages/eez-studio-ui/_stylesheets/project-editor.less +++ b/packages/eez-studio-ui/_stylesheets/project-editor.less @@ -3852,15 +3852,15 @@ } .EezStudio_ListLabel_Badge { - margin-left: 8px; + margin-right: 8px; transform: translateY(-1px); display: inline-block; padding: 0px 5px; font-size: 80%; font-weight: bold; - color: rgb(238, 238, 238); - background-color: var(--bs-secondary); + color: var(--bs-secondary); + background-color: var(--bs-secondary-bg); white-space: nowrap; border-radius: 4px; } diff --git a/packages/eez-studio-ui/search-input.tsx b/packages/eez-studio-ui/search-input.tsx index 4b723ea0..5d66cfd1 100644 --- a/packages/eez-studio-ui/search-input.tsx +++ b/packages/eez-studio-ui/search-input.tsx @@ -7,7 +7,6 @@ export class SearchInput extends React.Component<{ onChange: (event: React.ChangeEvent) => void; onKeyDown?: (event: React.KeyboardEvent) => void; onClear: () => void; - disableSpellcheck?: boolean; }> { render() { return ( @@ -21,11 +20,6 @@ export class SearchInput extends React.Component<{ value={this.props.searchText} onChange={this.props.onChange} onKeyDown={this.props.onKeyDown} - spellCheck={ - this.props.disableSpellcheck === true - ? false - : undefined - } /> {this.props.searchText && ( - +
diff --git a/packages/project-editor/core/object.ts b/packages/project-editor/core/object.ts index f9ba7e60..65f2325d 100644 --- a/packages/project-editor/core/object.ts +++ b/packages/project-editor/core/object.ts @@ -264,7 +264,6 @@ export interface PropertyInfo { ) => boolean; monospaceFont?: boolean; - disableSpellcheck?: boolean; cssAttributeName?: string; checkboxStyleSwitch?: boolean; checkboxHideLabel?: boolean; diff --git a/packages/project-editor/features/action/action.tsx b/packages/project-editor/features/action/action.tsx index 9d4f66ce..f35e0f22 100644 --- a/packages/project-editor/features/action/action.tsx +++ b/packages/project-editor/features/action/action.tsx @@ -279,13 +279,13 @@ export class Action extends Flow { const projectStore = getProjectStore(action); return ( <> - {action.name} {projectStore.projectTypeTraits.hasFlowSupport && action.implementationType == "native" && ( NATIVE )} + {action.name} ); }, diff --git a/packages/project-editor/features/variable/value-type.tsx b/packages/project-editor/features/variable/value-type.tsx index 81dfd037..743c1eef 100644 --- a/packages/project-editor/features/variable/value-type.tsx +++ b/packages/project-editor/features/variable/value-type.tsx @@ -976,8 +976,7 @@ export const variableTypeProperty: PropertyInfo = { name: "type", type: PropertyType.String, propertyGridColumnComponent: VariableTypeUI, - monospaceFont: true, - disableSpellcheck: true + monospaceFont: true }; //////////////////////////////////////////////////////////////////////////////// diff --git a/packages/project-editor/features/variable/variable.tsx b/packages/project-editor/features/variable/variable.tsx index cbc8904f..9d51c4cc 100644 --- a/packages/project-editor/features/variable/variable.tsx +++ b/packages/project-editor/features/variable/variable.tsx @@ -406,7 +406,6 @@ export class Variable extends EezObject { expressionIsConstant: true, flowProperty: "input", monospaceFont: true, - disableSpellcheck: true, disabled: object => { const project = ProjectEditor.getProject(object); return ( @@ -450,8 +449,7 @@ export class Variable extends EezObject { type: PropertyType.MultilineText, disabled: object => isLVGLProject(object) || hasFlowSupport(object), - monospaceFont: true, - disableSpellcheck: true + monospaceFont: true }, { name: "usedIn", @@ -492,13 +490,6 @@ export class Variable extends EezObject { listLabel: (variable: Variable) => { return ( <> - {variable.name} - - {variable.type} - {!isPropertyDisabled( variable, findPropertyByNameInObject(variable, "native")! @@ -517,6 +508,13 @@ export class Variable extends EezObject { PERSISTENT )} + {variable.name} + + {variable.type} + ); }, diff --git a/packages/project-editor/flow/component.tsx b/packages/project-editor/flow/component.tsx index 487a64ad..6df1e4ba 100644 --- a/packages/project-editor/flow/component.tsx +++ b/packages/project-editor/flow/component.tsx @@ -529,8 +529,7 @@ export function makeExpressionProperty( }, params ), - monospaceFont: true, - disableSpellcheck: true + monospaceFont: true } as Partial, propertyInfo ); @@ -558,8 +557,7 @@ export function makeAssignableExpressionProperty( }, params ), - monospaceFont: true, - disableSpellcheck: true + monospaceFont: true } as Partial, propertyInfo ); @@ -572,8 +570,7 @@ export function makeTemplateLiteralProperty( { flowProperty: "template-literal", expressionType: "string", - monospaceFont: true, - disableSpellcheck: true + monospaceFont: true } as Partial, propertyInfo ); diff --git a/packages/project-editor/flow/components/actions/index.tsx b/packages/project-editor/flow/components/actions/index.tsx index 2e999e2d..cf91df0d 100644 --- a/packages/project-editor/flow/components/actions/index.tsx +++ b/packages/project-editor/flow/components/actions/index.tsx @@ -550,7 +550,6 @@ export class EvalJSExprActionComponent extends ActionComponent { type: PropertyType.MultilineText, propertyGridGroup: specificGroup, monospaceFont: true, - disableSpellcheck: true, flowProperty: "template-literal" } ], diff --git a/packages/project-editor/flow/components/actions/instrument.tsx b/packages/project-editor/flow/components/actions/instrument.tsx index e811c66e..0bb3dd7e 100644 --- a/packages/project-editor/flow/components/actions/instrument.tsx +++ b/packages/project-editor/flow/components/actions/instrument.tsx @@ -97,7 +97,6 @@ export class SCPIActionComponent extends ActionComponent { type: PropertyType.MultilineText, propertyGridGroup: specificGroup, monospaceFont: true, - disableSpellcheck: true, flowProperty: "scpi-template-literal", expressionType: undefined, getInstrumentId: (component: SCPIActionComponent) => { diff --git a/packages/project-editor/flow/expression/ExpressionBuilder.tsx b/packages/project-editor/flow/expression/ExpressionBuilder.tsx index 28955f44..fb2a727b 100644 --- a/packages/project-editor/flow/expression/ExpressionBuilder.tsx +++ b/packages/project-editor/flow/expression/ExpressionBuilder.tsx @@ -1271,7 +1271,6 @@ const SelectItemDialog = observer( this.value = event.target.value; })} onSelect={this.onSelectionChange} - spellCheck={false} /> {tabs}
this.props.onChange(event.target.value)} - spellCheck={false} onKeyDown={this.props.onKeyDown} /> ); @@ -2775,7 +2774,6 @@ class DirectoryBrowserInput extends React.Component<{ className="form-control" value={this.props.value || ""} onChange={event => this.props.onChange(event.target.value)} - spellCheck={false} /> <>
diff --git a/packages/project-editor/ui-components/PropertyGrid/Property.tsx b/packages/project-editor/ui-components/PropertyGrid/Property.tsx index f06107c4..07bb2986 100644 --- a/packages/project-editor/ui-components/PropertyGrid/Property.tsx +++ b/packages/project-editor/ui-components/PropertyGrid/Property.tsx @@ -522,11 +522,6 @@ export const Property = observer( overflowY: "hidden" }} readOnly={propertyInfo.computed} - spellCheck={ - propertyInfo.disableSpellcheck - ? false - : true - } />