refactor: Deduplicate battery drawing code and fix Lyra charging indicator
This commit is contained in:
@@ -141,4 +141,9 @@ class BaseTheme {
|
||||
virtual void drawHelpText(const GfxRenderer& renderer, Rect rect, const char* label) const;
|
||||
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;
|
||||
|
||||
// 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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user