diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-04 14:39:22 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-04 14:39:22 +1000 |
| commit | 191441ebe2ecc654fee7d9cbfc536df4212117c8 (patch) | |
| tree | 0e580f4738358ccd079fb66441b71e4a4093bf8a /src/ui/screen_playing.cpp | |
| parent | 80170642ea1d8bfc9703af217993ae29e6ee81d6 (diff) | |
| download | tangara-fw-191441ebe2ecc654fee7d9cbfc536df4212117c8.tar.gz | |
Add missing files >.<
Diffstat (limited to 'src/ui/screen_playing.cpp')
| -rw-r--r-- | src/ui/screen_playing.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
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 <me@jacqueline.id.au> + * + * 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 |
