currentDisplay->initScreen() just fills the whole Screen with TFT_BLACK.
This means, things like white borders will be overdrawn with TFT_BLACK.
Currently, currentDisplay->start() is called before currentDisplay->initScreen();.
https://github.com/0xFEEDC0DE64/esp-gui-lib/blob/e953ec9216f7d8c5fc36592e91406dce557d4268/src/screenmanager.h#L31-L35
On the other hand, some widgets create a white border when start() is called.
https://github.com/0xFEEDC0DE64/esp-gui-lib/blob/e953ec9216f7d8c5fc36592e91406dce557d4268/src/widgets/progressbar.cpp#L15-L19
currentDisplay->initScreen() just fills the whole Screen with TFT_BLACK.
This means, things like white borders will be overdrawn with TFT_BLACK.
Oh okay, but still, currentDisplay->initScreen() only fills the screen black.
Also, the start functions of the widgets get called in the Displays start function. This would mean that refactoring would be needed to move the widget.start() functions to initScreen
Oh okay, but still, currentDisplay->initScreen() only fills the screen black.
Also, the start functions of the widgets get called in the Displays start function. This would mean that refactoring would be needed to move the widget.start() functions to initScreen
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Currently, currentDisplay->start() is called before currentDisplay->initScreen();.
https://github.com/0xFEEDC0DE64/esp-gui-lib/blob/e953ec9216f7d8c5fc36592e91406dce557d4268/src/screenmanager.h#L31-L35
On the other hand, some widgets create a white border when start() is called.
https://github.com/0xFEEDC0DE64/esp-gui-lib/blob/e953ec9216f7d8c5fc36592e91406dce557d4268/src/widgets/progressbar.cpp#L15-L19
currentDisplay->initScreen() just fills the whole Screen with TFT_BLACK.
This means, things like white borders will be overdrawn with TFT_BLACK.
A valid fix would be to call currentDisplay->initScreen() before currentDisplay->start()
Widget::start should only be called from Display::initScreen
Oh okay, but still, currentDisplay->initScreen() only fills the screen black.
Also, the start functions of the widgets get called in the Displays start function. This would mean that refactoring would be needed to move the widget.start() functions to initScreen