MCPcopy Create free account
hub / github.com/El-EnderJ/NeoCalculator / refreshScriptFocus

Method refreshScriptFocus

src/apps/PythonApp.cpp:404–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void PythonApp::refreshScriptFocus() {
405 for (int i = 0; i < _scriptCount; ++i) {
406 if (!_scriptRows[i]) continue;
407 bool sel = (!_btnFocus && i == _scriptIdx && _focus == Focus::CONTENT);
408 lv_obj_set_style_bg_color(_scriptRows[i],
409 lv_color_hex(sel ? COL_ROW_SEL : COL_ROW_BG), LV_PART_MAIN);
410 if (_scriptLabels[i]) {
411 lv_obj_set_style_text_color(_scriptLabels[i],
412 lv_color_hex(sel ? 0xFFFFFF : 0x333333), LV_PART_MAIN);
413 }
414 }
415 refreshBtnBar();
416}
417
418void PythonApp::refreshBtnBar() {
419 if (!_btnNew || !_btnRun || !_btnDelete) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected