mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 15:12:35 -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
|
@ -587,6 +587,28 @@ void ProgressBar::paint(Painter& painter) {
|
|||
painter.draw_rectangle(sr, s.foreground);
|
||||
}
|
||||
|
||||
/* ActivityDot ***********************************************************/
|
||||
|
||||
ActivityDot::ActivityDot(
|
||||
Rect parent_rect,
|
||||
Color color)
|
||||
: Widget{parent_rect},
|
||||
_color{color} {}
|
||||
|
||||
void ActivityDot::paint(Painter& painter) {
|
||||
painter.fill_rectangle(screen_rect(), _on ? _color : Color::grey());
|
||||
}
|
||||
|
||||
void ActivityDot::toggle() {
|
||||
_on = !_on;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void ActivityDot::reset() {
|
||||
_on = false;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
/* Console ***************************************************************/
|
||||
|
||||
Console::Console(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue