summaryrefslogtreecommitdiff
path: root/src/ui/screen_playing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/screen_playing.cpp')
-rw-r--r--src/ui/screen_playing.cpp43
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