blob: 48cfef88e0d585a98faf1e16bb74856ad7f01f7c (
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
|
/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#include "screen_splash.hpp"
#include "core/lv_obj.h"
#include "core/lv_obj_style.h"
#include "lvgl.h"
#include "misc/lv_area.h"
#include "misc/lv_color.h"
#include "misc/lv_style.h"
LV_IMG_DECLARE(splash);
namespace ui {
namespace screens {
Splash::Splash() {
lv_obj_set_style_bg_opa(root_, LV_OPA_COVER, 0);
lv_obj_set_style_bg_color(root_, lv_color_black(), 0);
lv_obj_t* logo = lv_img_create(root_);
lv_img_set_src(logo, &splash);
lv_obj_center(logo);
}
Splash::~Splash() {}
} // namespace screens
} // namespace ui
|