Support "Centralize most color definitions" (#50)

Support changes in InfiniTimeOrg/InfiniTime#1258

The file `lv_pinetime_theme.c` is renamed to `InfiniTimeTheme.cpp`.
Need to pick up that change in the simulator to compile with the new cpp
file if it exists.

Furthermore use the new `InfiniTimeTheme.h` header in simulator files.

Fixes: https://github.com/InfiniTimeOrg/InfiniSim/issues/49
This commit is contained in:
NeroBurner
2022-08-15 13:46:42 +02:00
committed by GitHub
parent fc96e5df31
commit b00dceb8c6
3 changed files with 20 additions and 2 deletions

View File

@@ -21,7 +21,11 @@
#include "lv_drivers/indev/mousewheel.h"
// get PineTime header
#if defined(INFINITIME_THEME_CPP)
#include "displayapp/InfiniTimeTheme.h"
#else
#include "displayapp/lv_pinetime_theme.h"
#endif
#include <drivers/Hrs3300.h>
#include <drivers/Bma421.h>