New design for displays with title (grey bar)
This commit is contained in:
@ -11,14 +11,17 @@ void DisplayWithTitle::initScreen(TftInterface &tft)
|
|||||||
Base::initScreen(tft);
|
Base::initScreen(tft);
|
||||||
|
|
||||||
m_titleLabel.start(tft);
|
m_titleLabel.start(tft);
|
||||||
tft.fillRect(0, 33, tft.width(), 3, TFT_WHITE);
|
|
||||||
|
tft.fillRect(0, 0, tft.width(), 35, TFT_GREY);
|
||||||
|
|
||||||
|
// tft.fillRect(0, 34, tft.width(), 3, TFT_WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayWithTitle::redraw(TftInterface &tft)
|
void DisplayWithTitle::redraw(TftInterface &tft)
|
||||||
{
|
{
|
||||||
Base::redraw(tft);
|
Base::redraw(tft);
|
||||||
|
|
||||||
m_titleLabel.redraw(tft, title(), TFT_YELLOW, TFT_BLACK, 4);
|
m_titleLabel.redraw(tft, title(), TFT_WHITE, TFT_GREY, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace espgui
|
} // namespace espgui
|
||||||
|
Reference in New Issue
Block a user