mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-31 17:26:12 +00:00
tiny ui rendering fixes
This commit is contained in:
@@ -84,6 +84,7 @@ public:
|
|||||||
ble_on ? "ON" : "OFF"
|
ble_on ? "ON" : "OFF"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
display.setTextSize(1);
|
||||||
_text_width = display.getTextWidth(_status);
|
_text_width = display.getTextWidth(_status);
|
||||||
_next_update = millis() + STATUS_BAR_UPDATE_MS;
|
_next_update = millis() + STATUS_BAR_UPDATE_MS;
|
||||||
_needs_redraw = true;
|
_needs_redraw = true;
|
||||||
@@ -105,6 +106,10 @@ public:
|
|||||||
display.setTextSize(1);
|
display.setTextSize(1);
|
||||||
display.setColor(DisplayDriver::GREEN);
|
display.setColor(DisplayDriver::GREEN);
|
||||||
|
|
||||||
|
// if (_needs_redraw) {
|
||||||
|
// _text_width = display.getTextWidth(_status);
|
||||||
|
// }
|
||||||
|
|
||||||
// static text: no scrolling needed
|
// static text: no scrolling needed
|
||||||
if (_text_width <= _display_width) {
|
if (_text_width <= _display_width) {
|
||||||
display.setCursor(0, 0);
|
display.setCursor(0, 0);
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
if (_task->hasConnection()) {
|
if (_task->hasConnection()) {
|
||||||
display.setColor(DisplayDriver::GREEN);
|
display.setColor(DisplayDriver::GREEN);
|
||||||
display.setTextSize(2);
|
display.setTextSize(1);
|
||||||
display.drawTextCentered(display.width() / 2, display.height()-8, "< Connected >");
|
display.drawTextCentered(display.width() / 2, display.height()-8, "< Connected >");
|
||||||
|
|
||||||
} else if (the_mesh.getBLEPin() != 0) { // BT pin
|
} else if (the_mesh.getBLEPin() != 0) { // BT pin
|
||||||
|
|||||||
Reference in New Issue
Block a user