diff --git a/Qt/simulatorbase.cpp b/Qt/simulatorbase.cpp index 4c92c2d..8fe9c9a 100644 --- a/Qt/simulatorbase.cpp +++ b/Qt/simulatorbase.cpp @@ -234,7 +234,8 @@ void SimulatorBase::process_ui_button(json& uiItem) return; } - QColor bg_color = QColor(QString::fromStdString(uiItem["color"])); + QColor bg_color = QColor(QString::fromStdString(uiItem["bg_color"])); + QColor fg_color = QColor(QString::fromStdString(uiItem["fg_color"])); QString text = QString::fromStdString(uiItem["text"]); bool enabled = uiItem["enabled"];