Fix potential edge case of sidebar being set black

This commit is contained in:
Kieran Cawthray 2021-08-15 15:28:40 +02:00
parent 639fd3a9bd
commit 9851ed33d8

View File

@ -310,7 +310,7 @@ void SettingPineTimeStyle::UpdateSelected(lv_obj_t* object, lv_event_t event) {
randBG += 1;
}
if (randBar == 3) {
randBar = randTime;
randBar -= 1;
}
settingsController.SetPTSColorTime(randTime);
lv_obj_set_style_local_text_color(timeDD1, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, pts_colors[randTime]);