mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-17 05:13:25 +00:00
Standalone app api v3 (#2772)
Added file io, and updated some ui elements. Also added Digital Rain standalone app for an example.
This commit is contained in:
@@ -4,6 +4,12 @@ namespace ui {
|
||||
|
||||
ThemeTemplate* Theme::current = nullptr;
|
||||
|
||||
void Theme::destroy() {
|
||||
if (current != nullptr)
|
||||
delete current;
|
||||
current = nullptr;
|
||||
}
|
||||
|
||||
ThemeTemplate* Theme::getInstance() {
|
||||
if (current == nullptr) SetTheme(DefaultGrey);
|
||||
return Theme::current;
|
||||
|
||||
Reference in New Issue
Block a user