diff --git a/packages/eez-studio-ui/_stylesheets/app.less b/packages/eez-studio-ui/_stylesheets/app.less
index 2780dd37..adb65c85 100644
--- a/packages/eez-studio-ui/_stylesheets/app.less
+++ b/packages/eez-studio-ui/_stylesheets/app.less
@@ -1083,6 +1083,7 @@ button.EezStudio_Action {
display: flex;
white-space: nowrap;
position: relative;
+ border-radius: 3px;
&.drag-source {
background-color: @dragSourceBackgroundColor;
diff --git a/packages/eez-studio-ui/_stylesheets/project-editor.less b/packages/eez-studio-ui/_stylesheets/project-editor.less
index cd852b33..cb5213b7 100644
--- a/packages/eez-studio-ui/_stylesheets/project-editor.less
+++ b/packages/eez-studio-ui/_stylesheets/project-editor.less
@@ -3822,5 +3822,5 @@
color: rgb(238, 238, 238);
background-color: var(--bs-secondary);
white-space: nowrap;
- border-radius: var(--bs-border-radius);
+ border-radius: 4px;
}
diff --git a/packages/project-editor/features/variable/variable.tsx b/packages/project-editor/features/variable/variable.tsx
index c87ab022..cbc8904f 100644
--- a/packages/project-editor/features/variable/variable.tsx
+++ b/packages/project-editor/features/variable/variable.tsx
@@ -24,7 +24,8 @@ import {
IMessage,
PropertyInfo,
getProperty,
- PropertyProps
+ PropertyProps,
+ isPropertyDisabled
} from "project-editor/core/object";
import {
getChildOfObject,
@@ -32,7 +33,8 @@ import {
propertyNotSetMessage,
createObject,
isEezObjectArray,
- getAncestorOfType
+ getAncestorOfType,
+ findPropertyByNameInObject
} from "project-editor/store";
import {
isDashboardProject,
@@ -470,7 +472,8 @@ export class Variable extends EezObject {
ProjectEditor.getProjectStore(variable),
variable.type
)?.editConstructorParams) ||
- variable.type == "object:TCPSocket"
+ variable.type == "object:TCPSocket",
+ checkboxStyleSwitch: true
},
{
name: "persistedValue",
@@ -487,8 +490,6 @@ export class Variable extends EezObject {
],
icon: VARIABLE_ICON,
listLabel: (variable: Variable) => {
- const projectStore = getProjectStore(variable);
-
return (
<>
{variable.name}
@@ -498,17 +499,24 @@ export class Variable extends EezObject {
>
{variable.type}
- {projectStore.projectTypeTraits.hasFlowSupport &&
+ {!isPropertyDisabled(
+ variable,
+ findPropertyByNameInObject(variable, "native")!
+ ) &&
variable.native && (
NATIVE
)}
- {variable.persistent && (
-
- PERSISTENT
-
- )}
+ {!isPropertyDisabled(
+ variable,
+ findPropertyByNameInObject(variable, "persistent")!
+ ) &&
+ variable.persistent && (
+
+ PERSISTENT
+
+ )}
>
);
},
diff --git a/packages/project-editor/lvgl/widgets/Label.tsx b/packages/project-editor/lvgl/widgets/Label.tsx
index 58d32492..6af1ce35 100644
--- a/packages/project-editor/lvgl/widgets/Label.tsx
+++ b/packages/project-editor/lvgl/widgets/Label.tsx
@@ -90,7 +90,8 @@ export class LVGLLabelWidget extends LVGLWidget {
{
name: "recolor",
type: PropertyType.Boolean,
- propertyGridGroup: specificGroup
+ propertyGridGroup: specificGroup,
+ checkboxStyleSwitch: true
}
],