| 402 | } |
| 403 | |
| 404 | void 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 | |
| 418 | void PythonApp::refreshBtnBar() { |
| 419 | if (!_btnNew || !_btnRun || !_btnDelete) return; |
nothing calls this directly
no outgoing calls
no test coverage detected