Enlarge Indicator native setup screen

This commit is contained in:
mikecarper committed 2026-08-31 16:10:03 -07:00
1 parent 164a6e8227
commit 4bbdf4b071
6 files changed
+163 -5

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
#pragma once
#include <helpers/ui/DisplayDriver.h>
#include <helpers/ui/IndicatorRenderProfile.h>
namespace mesh {
namespace ui {
@@ -37,8 +38,8 @@ struct CompactCompanionPairingLayout {
// unrelated displays that happen to have a tall viewport.
inline bool usesExpandedCompanionHomeTypography(
int width, int height, int render_width, int render_height) {
return width == 160 && height == 160
&& render_width == 480 && render_height == 480;
return usesNativeIndicatorTypography(
width, height, render_width, render_height);
}
// The common Companion OLED/TFT viewport is 128x64. Its normal instruction
+10
View File
@@ -11,6 +11,16 @@ struct IndicatorRenderProfile {
uint16_t canvas_size;
};
// Full-size Indicator builds retain the established 160x160 logical
// coordinate system even when the backing canvas is the panel's native
// 480x480. Screens with enough room to reflow can use this distinction to
// choose substantially larger text without changing the 320px BLE fallback.
inline bool usesNativeIndicatorTypography(
int width, int height, int render_width, int render_height) {
return width == 160 && height == 160
&& render_width == 480 && render_height == 480;
}
// ESP-NOW and BLE are the Indicator's tightest internal-RAM combination.
// Every other exclusive Full-Companion combination can use a native 480px
// internal canvas while preserving the established 160px UI coordinates.