blob: 053f324c64461bba08697614f2484f202651453c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
|