1
- /* Autogenerated on January 26, 2025 4:44:23 PM from eez-framework commit 0006a5c3421e344c1cceb13528634cd9dd62adac */
1
+ /* Autogenerated on January 26, 2025 5:54:00 PM from eez-framework commit 4d6976602ece58918a4bb20ba0f56bbaaa70949c */
2
2
/*
3
3
* eez-framework
4
4
*
@@ -5370,11 +5370,13 @@ void executeSetColorThemeComponent(FlowState *flowState, unsigned componentIndex
5370
5370
#if defined(EEZ_FOR_LVGL)
5371
5371
lvglSetColorThemeHook(theme);
5372
5372
#elif EEZ_OPTION_GUI
5373
+ #if defined(EEZ_DASHBOARD_API)
5373
5374
if (g_mainAssets->assetsType == ASSETS_TYPE_DASHBOARD) {
5374
5375
setDashboardColorTheme(theme);
5375
5376
propagateValueThroughSeqout(flowState, componentIndex);
5376
5377
} else {
5377
- auto &themes = flowState->assets->colorsDefinition->themes;
5378
+ #endif
5379
+ auto &themes = flowState->assets->colorsDefinition->themes;
5378
5380
for (uint32_t themeIndex = 0; themeIndex < themes.count; themeIndex++) {
5379
5381
if (strcmp(themes[themeIndex]->name, theme) == 0) {
5380
5382
eez::gui::g_selectedThemeIndex = themeIndex;
@@ -5386,8 +5388,10 @@ void executeSetColorThemeComponent(FlowState *flowState, unsigned componentIndex
5386
5388
char message[256];
5387
5389
snprintf(message, sizeof(message), "Unknown theme %s", theme);
5388
5390
throwError(flowState, componentIndex, FlowError::Plain(message));
5391
+ #if defined(EEZ_DASHBOARD_API)
5389
5392
}
5390
5393
#endif
5394
+ #endif
5391
5395
}
5392
5396
}
5393
5397
}
@@ -6688,6 +6692,17 @@ bool evalExpression(FlowState *flowState, int componentIndex, const uint8_t *ins
6688
6692
}
6689
6693
return true;
6690
6694
}
6695
+ } else if (operation == DATA_OPERATION_GET_CANVAS_REFRESH_STATE) {
6696
+ result = g_stack.pop();
6697
+ if (!result.isError()) {
6698
+ if (result.getType() == VALUE_TYPE_NATIVE_VARIABLE) {
6699
+ auto nativeVariableId = result.getInt();
6700
+ result = getCanvasRefreshState(g_widgetCursor, nativeVariableId);
6701
+ } else {
6702
+ result = Value();
6703
+ }
6704
+ return true;
6705
+ }
6691
6706
} else {
6692
6707
#endif
6693
6708
result = g_stack.pop().getValue();
@@ -7198,6 +7213,11 @@ void dataOperation(int16_t dataId, DataOperationEnum operation, const WidgetCurs
7198
7213
else if (operation == DATA_OPERATION_GET_TEXT_CURSOR_POSITION) {
7199
7214
getValue(flowDataId, operation, widgetCursor, value);
7200
7215
}
7216
+ #endif
7217
+ #if EEZ_OPTION_GUI
7218
+ else if (operation == DATA_OPERATION_GET_CANVAS_REFRESH_STATE) {
7219
+ getValue(flowDataId, operation, widgetCursor, value);
7220
+ }
7201
7221
#endif
7202
7222
} else {
7203
7223
value = Value();
0 commit comments