Merge branch 'lightning-refactor' of https://github.com/znelson/crosspoint-reader into mybuild

This commit is contained in:
jpirnay
2026-03-21 09:10:08 +01:00
3 changed files with 59 additions and 63 deletions
+5
View File
@@ -142,4 +142,9 @@ class BaseTheme {
virtual void drawTextField(const GfxRenderer& renderer, Rect rect, const int textWidth) const;
virtual void drawKeyboardKey(const GfxRenderer& renderer, Rect rect, const char* label, const bool isSelected) const;
virtual bool showsFileIcons() const { return false; }
// Shared constants and helpers for battery drawing (used by all themes)
static constexpr int batteryPercentSpacing = 4;
static void drawBatteryOutline(const GfxRenderer& renderer, int x, int y, int battWidth, int rectHeight);
static void drawBatteryLightningBolt(const GfxRenderer& renderer, int boltX, int boltY);
};