New design for displays with title (grey bar)
This commit is contained in:
1 parent
26c0be33b1
commit
b4b30c863a
1 file changed
+5
-2
@@ -11,14 +11,17 @@ void DisplayWithTitle::initScreen(TftInterface &tft)
|
||||
Base::initScreen(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)
|
||||
{
|
||||
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
|
||||
Reference in new issue
Block a user