Skip to content

Commit

Permalink
update eez-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 26, 2025
1 parent 1e0a4c2 commit a794695
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
Binary file modified packages/project-editor/flow/runtime/eez_runtime.wasm
Binary file not shown.
24 changes: 22 additions & 2 deletions resources/eez-framework-amalgamation/eez-flow.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on January 26, 2025 4:44:23 PM from eez-framework commit 0006a5c3421e344c1cceb13528634cd9dd62adac */
/* Autogenerated on January 26, 2025 5:54:00 PM from eez-framework commit 4d6976602ece58918a4bb20ba0f56bbaaa70949c */
/*
* eez-framework
*
Expand Down Expand Up @@ -5370,11 +5370,13 @@ void executeSetColorThemeComponent(FlowState *flowState, unsigned componentIndex
#if defined(EEZ_FOR_LVGL)
lvglSetColorThemeHook(theme);
#elif EEZ_OPTION_GUI
#if defined(EEZ_DASHBOARD_API)
if (g_mainAssets->assetsType == ASSETS_TYPE_DASHBOARD) {
setDashboardColorTheme(theme);
propagateValueThroughSeqout(flowState, componentIndex);
} else {
auto &themes = flowState->assets->colorsDefinition->themes;
#endif
auto &themes = flowState->assets->colorsDefinition->themes;
for (uint32_t themeIndex = 0; themeIndex < themes.count; themeIndex++) {
if (strcmp(themes[themeIndex]->name, theme) == 0) {
eez::gui::g_selectedThemeIndex = themeIndex;
Expand All @@ -5386,8 +5388,10 @@ void executeSetColorThemeComponent(FlowState *flowState, unsigned componentIndex
char message[256];
snprintf(message, sizeof(message), "Unknown theme %s", theme);
throwError(flowState, componentIndex, FlowError::Plain(message));
#if defined(EEZ_DASHBOARD_API)
}
#endif
#endif
}
}
}
Expand Down Expand Up @@ -6688,6 +6692,17 @@ bool evalExpression(FlowState *flowState, int componentIndex, const uint8_t *ins
}
return true;
}
} else if (operation == DATA_OPERATION_GET_CANVAS_REFRESH_STATE) {
result = g_stack.pop();
if (!result.isError()) {
if (result.getType() == VALUE_TYPE_NATIVE_VARIABLE) {
auto nativeVariableId = result.getInt();
result = getCanvasRefreshState(g_widgetCursor, nativeVariableId);
} else {
result = Value();
}
return true;
}
} else {
#endif
result = g_stack.pop().getValue();
Expand Down Expand Up @@ -7198,6 +7213,11 @@ void dataOperation(int16_t dataId, DataOperationEnum operation, const WidgetCurs
else if (operation == DATA_OPERATION_GET_TEXT_CURSOR_POSITION) {
getValue(flowDataId, operation, widgetCursor, value);
}
#endif
#if EEZ_OPTION_GUI
else if (operation == DATA_OPERATION_GET_CANVAS_REFRESH_STATE) {
getValue(flowDataId, operation, widgetCursor, value);
}
#endif
} else {
value = Value();
Expand Down
2 changes: 1 addition & 1 deletion resources/eez-framework-amalgamation/eez-flow.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on January 26, 2025 4:44:23 PM from eez-framework commit 0006a5c3421e344c1cceb13528634cd9dd62adac */
/* Autogenerated on January 26, 2025 5:54:00 PM from eez-framework commit 4d6976602ece58918a4bb20ba0f56bbaaa70949c */
/*
* eez-framework
*
Expand Down
2 changes: 1 addition & 1 deletion wasm/eez-framework

0 comments on commit a794695

Please sign in to comment.