summaryrefslogtreecommitdiff
path: root/src/tangara/ui/screen_splash.hpp
blob: 9eede90fbb9964ccad25acc7bd253025af56f982 (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
/*
 * Copyright 2023 jacqueline <me@jacqueline.id.au>
 *
 * SPDX-License-Identifier: GPL-3.0-only
 */

#pragma once

#include <memory>

#include "lvgl.h"

#include "ui/screen.hpp"

namespace ui {
namespace screens {

class Splash : public Screen {
 public:
  Splash();
  ~Splash();

  auto canPop() -> bool override { return true; }

 private:
  lv_obj_t* container_;
  lv_obj_t* label_;
  lv_obj_t* spinner_;
};

}  // namespace screens
}  // namespace ui