From 191441ebe2ecc654fee7d9cbfc536df4212117c8 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 4 Jul 2023 14:39:22 +1000 Subject: Add missing files >.< --- src/ui/screen_playing.cpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/ui/screen_playing.cpp (limited to 'src/ui/screen_playing.cpp') diff --git a/src/ui/screen_playing.cpp b/src/ui/screen_playing.cpp new file mode 100644 index 00000000..053f324c --- /dev/null +++ b/src/ui/screen_playing.cpp @@ -0,0 +1,43 @@ +/* + * Copyright 2023 jacqueline + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#include "screen_playing.hpp" + +#include "esp_log.h" +#include "lvgl.h" + +#include "core/lv_group.h" +#include "core/lv_obj_pos.h" +#include "event_queue.hpp" +#include "extra/widgets/list/lv_list.h" +#include "extra/widgets/menu/lv_menu.h" +#include "extra/widgets/spinner/lv_spinner.h" +#include "hal/lv_hal_disp.h" +#include "index.hpp" +#include "misc/lv_area.h" +#include "track.hpp" +#include "ui_events.hpp" +#include "ui_fsm.hpp" +#include "widgets/lv_label.h" + +namespace ui { +namespace screens { + +Playing::Playing(database::Track track) : track_(track) { + lv_obj_t* container = lv_obj_create(root_); + lv_obj_set_align(container, LV_ALIGN_CENTER); + lv_obj_set_size(container, LV_SIZE_CONTENT, LV_SIZE_CONTENT); + + // bro idk + lv_obj_t* label = lv_label_create(container); + lv_label_set_text_static(label, track.TitleOrFilename().c_str()); + lv_obj_set_align(label, LV_ALIGN_CENTER); +} + +Playing::~Playing() {} + +} // namespace screens +} // namespace ui -- cgit v1.2.3