mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-10 07:30:08 -04:00
ADSB RX App cleanup (#1569)
* WIP refactoring/gardening * WIP cleanup, adding status dots * Rename ageStep * WIP Cleanup * Wrapping up ADSB refactor/cleanup. * Don't initialize strings to " " * Better map refresh * Fix colorization of recent entries * Fit and finish
This commit is contained in:
parent
bbd1a5a2ef
commit
f4f538f69b
7 changed files with 533 additions and 432 deletions
|
@ -317,6 +317,20 @@ class ProgressBar : public Widget {
|
|||
uint32_t _max = 100;
|
||||
};
|
||||
|
||||
/* A simple status indicator that can be used to indicate activity. */
|
||||
class ActivityDot : public Widget {
|
||||
public:
|
||||
ActivityDot(Rect parent_rect, Color color);
|
||||
|
||||
void paint(Painter& painter) override;
|
||||
void toggle();
|
||||
void reset();
|
||||
|
||||
private:
|
||||
bool _on{false};
|
||||
Color _color;
|
||||
};
|
||||
|
||||
class Console : public Widget {
|
||||
public:
|
||||
Console(Rect parent_rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue