27 lines
675 B
C++
27 lines
675 B
C++
#pragma once
|
|
|
|
// local includes
|
|
#include "displays/bobbymenudisplay.h"
|
|
#include "widgets/doubleprogressbar.h"
|
|
#include "widgets/label.h"
|
|
|
|
class BatteryMenu : public BobbyMenuDisplay
|
|
{
|
|
using Base = BobbyMenuDisplay;
|
|
|
|
public:
|
|
BatteryMenu();
|
|
|
|
std::string title() const override;
|
|
|
|
void initScreen(espgui::TftInterface &tft) override;
|
|
void start() override;
|
|
void redraw(espgui::TftInterface &tft) override;
|
|
void back() override;
|
|
|
|
private:
|
|
bobbygui::DoubleProgressBar m_doubleProgressBarBatPercentage{75, 68, 90, 24, 0, 100, TFT_RED, TFT_GREEN};
|
|
espgui::Label m_batPercentNowLabel {170, 68};
|
|
espgui::Label m_batPercentBootLabel{170, 82};
|
|
};
|