Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jun 30, 2023
1 parent 79bb5ff commit 16afe0d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/eez-studio-ui/_stylesheets/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -3246,6 +3246,10 @@ button.EezStudio_Action {
}
}

& > td > div.EezStudio_CodeEditor {
display: list-item;
}

& > td.property-name {
white-space: nowrap;
height: 26px;
Expand Down
3 changes: 2 additions & 1 deletion packages/project-editor/features/bitmap/bitmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ExportBitmapFilePropertyGridUI = observer(
return (
<div style={{ marginTop: 10 }}>
<Button color="primary" size="small" onClick={this.export}>
Export Bitmap File...
Export Bitmap File
</Button>
</div>
);
Expand Down Expand Up @@ -231,6 +231,7 @@ export class Bitmap extends EezObject {
},
{
name: "alwaysBuild",
displayName: "Always add to the generated code",
type: PropertyType.Boolean,
hideInPropertyGrid: object =>
isLVGLProject(object) || isDashboardProject(object)
Expand Down
3 changes: 2 additions & 1 deletion packages/project-editor/features/font/font.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ const ExportFontFilePropertyGridUI = observer(
return (
<div style={{ marginTop: 10 }}>
<Button color="primary" size="small" onClick={this.export}>
Export font file...
Export Font File
</Button>
</div>
);
Expand Down Expand Up @@ -1116,6 +1116,7 @@ export class Font extends EezObject {
},
{
name: "alwaysBuild",
displayName: "Always add to the generated code",
type: PropertyType.Boolean,
hideInPropertyGrid: isLVGLProject
},
Expand Down
1 change: 1 addition & 0 deletions packages/project-editor/features/style/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ const cssPreviewProperty: PropertyInfo = {

const alwaysBuildProperty: PropertyInfo = {
name: "alwaysBuild",
displayName: "Always add to the generated code",
type: PropertyType.Boolean,
defaultValue: false,
inheritable: false,
Expand Down
9 changes: 9 additions & 0 deletions packages/project-editor/flow/components/widgets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2768,6 +2768,15 @@ const BitmapWidgetPropertyGridUI = observer(
return null;
}

const widget = this.props.objects[0] as Widget;

if (
widget.width == imageElement.width &&
widget.height == imageElement.height
) {
return null;
}

return (
<Button
color="primary"
Expand Down
20 changes: 17 additions & 3 deletions resources/project-templates/IEXT.eez-project-ui-state
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@
"component": "editors",
"enableClose": false
}
]
],
"active": true
},
{
"type": "tabset",
Expand Down Expand Up @@ -922,10 +923,23 @@
{
"type": "tabset",
"id": "EDITORS",
"selected": -1,
"enableDeleteWhenEmpty": false,
"enableClose": false,
"children": []
"children": [
{
"type": "tab",
"id": "#1bda63f8-44d3-4151-8691-421a3f4cff61",
"name": "Settings",
"component": "editor",
"config": {
"objectPath": "[C:/work/eez/studio/resources/project-templates/IEXT.eez-project]:/settings",
"subObjectPath": "[C:/work/eez/studio/resources/project-templates/IEXT.eez-project]:/settings",
"permanent": false
},
"icon": "material:settings"
}
],
"active": true
}
]
}
Expand Down

0 comments on commit 16afe0d

Please sign in to comment.