Use readable 6px message font and keep 5px on tiny panels
This commit is contained in:
1 parent
5fe6f299f3
commit
272dc9aa4b
14 files changed
+1550
-93
No files matched your search
@@ -4,7 +4,7 @@
|
||||
#include <helpers/ui/CompanionHomeLayout.h>
|
||||
#include <helpers/ui/CompanionMessageHistory.h>
|
||||
#if UI_SMALL_MESSAGE_FONT == 1
|
||||
#include <helpers/ui/Pixel5Text.h>
|
||||
#include <helpers/ui/SmallMessageText.h>
|
||||
#endif
|
||||
#include <helpers/ui/CompanionTransportSelectorLayout.h>
|
||||
#include "../MyMesh.h"
|
||||
@@ -1444,7 +1444,7 @@ public:
|
||||
|
||||
#if UI_SMALL_MESSAGE_FONT == 1
|
||||
mesh::ui::drawSmallMessageBody(display, p->origin, p->message,
|
||||
layout.origin_y, layout.origin_y + 7,
|
||||
layout.origin_y,
|
||||
UI_MESSAGE_CHANNEL_FOOTER == 1
|
||||
? display.height() - layout.filter_height : display.height());
|
||||
#else
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "UITask.h"
|
||||
#if UI_SMALL_MESSAGE_FONT == 1
|
||||
#include <helpers/ui/Pixel5Text.h>
|
||||
#include <helpers/ui/SmallMessageText.h>
|
||||
#endif
|
||||
#include <Arduino.h>
|
||||
#include <helpers/TxtDataHelpers.h>
|
||||
@@ -246,7 +246,7 @@ void UITask::renderCurrScreen() {
|
||||
_display->print(_node_prefs->node_name);
|
||||
|
||||
#if UI_SMALL_MESSAGE_FONT == 1
|
||||
mesh::ui::drawSmallMessageBody(*_display, _origin, _msg, 12, 19);
|
||||
mesh::ui::drawSmallMessageBody(*_display, _origin, _msg, 12);
|
||||
#else
|
||||
_display->setCursor(0, 12);
|
||||
_display->setColor(UIColor::secondary_txt);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "UITask.h"
|
||||
#if UI_SMALL_MESSAGE_FONT == 1
|
||||
#include <helpers/ui/Pixel5Text.h>
|
||||
#include <helpers/ui/SmallMessageText.h>
|
||||
#endif
|
||||
#include <helpers/TxtDataHelpers.h>
|
||||
#include <helpers/ui/BluetoothPairingUiPolicy.h>
|
||||
@@ -460,7 +460,7 @@ public:
|
||||
}
|
||||
int render(DisplayDriver& display) override {
|
||||
// The 72x40 interface reserves its top 8px for the scrolling status bar.
|
||||
mesh::ui::drawSmallMessageBody(display, _origin, _message, 10, 17);
|
||||
mesh::ui::drawSmallMessageBody(display, _origin, _message, 10);
|
||||
return 1000;
|
||||
}
|
||||
bool handleInput(char c) override {
|
||||
|
||||
Reference in new issue
Block a user