| 151 | } |
| 152 | |
| 153 | static void update_icon(lv_obj_t* image, const StatusbarIcon* icon) { |
| 154 | if (!icon->image.empty() && icon->visible && icon->claimed) { |
| 155 | lv_image_set_src(image, icon->image.c_str()); |
| 156 | lv_obj_remove_flag(image, LV_OBJ_FLAG_HIDDEN); |
| 157 | } else { |
| 158 | lv_obj_add_flag(image, LV_OBJ_FLAG_HIDDEN); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | lv_obj_t* statusbar_create(lv_obj_t* parent) { |
| 163 | statusbar_class.height_def = statusbar_get_height(); |
no outgoing calls
no test coverage detected