Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Commit

Permalink
UI: Open Solo logo and version splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedals2Paddles authored and davidbuzz committed Dec 17, 2017
1 parent bd99cf5 commit 9cef6ef
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
Binary file modified resources/images/logo_startup/Solo_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 1 addition & 13 deletions src/ui_splash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,14 @@ bool UiSplash::update()
}
}

if (versionDrawRequested) {
drawVersion();
versionDrawRequested = false;
}
drawVersion();

uint16_t w = scale(millis, 0U, BootEstimateMillis, 0U, Gfx::WIDTH);
Gfx::fillRect(Gfx::Rect(0, Gfx::HEIGHT - ProgressBarH, w, ProgressBarH), UiColor::Green);

return false;
}

void UiSplash::onAButtonEvent(Button *b, Button::Event e)
{
UNUSED(b);

if (e == Button::ClickRelease) {
versionDrawRequested = true;
}
}

void UiSplash::drawVersion()
{
const Gfx::FontAsset & f = HelveticaNeueLTProRoman;
Expand Down
1 change: 0 additions & 1 deletion src/ui_splash.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class UiSplash

void init();
bool update();
void onAButtonEvent(Button *b, Button::Event e);

private:
static const unsigned MinSplashMillis = 6000;
Expand Down

0 comments on commit 9cef6ef

Please sign in to comment.