Introduced new tft interface and added iconconverter

This commit is contained in:
2022-12-01 19:50:29 +01:00
parent 324a6718e7
commit 9bfbcdfb03
57 changed files with 900 additions and 430 deletions
+8 -9
View File
@@ -1,25 +1,24 @@
#include "displaywithtitle.h"
// local includes
#include "tftinstance.h"
#include "tftinterface.h"
#include "tftcolors.h"
namespace espgui {
void DisplayWithTitle::initScreen()
void DisplayWithTitle::initScreen(TftInterface &tft)
{
Base::initScreen();
Base::initScreen(tft);
m_titleLabel.start();
m_titleLabel.start(tft);
tft.fillRect(0, 33, tft.width(), 3, TFT_WHITE);
}
void DisplayWithTitle::redraw()
void DisplayWithTitle::redraw(TftInterface &tft)
{
Base::redraw();
Base::redraw(tft);
tft.setTextFont(4);
tft.setTextColor(TFT_YELLOW, TFT_BLACK);
m_titleLabel.redraw(text());
m_titleLabel.redraw(tft, text(), TFT_YELLOW, TFT_BLACK, 4);
}
} // namespace espgui