~jacqueline/neon-genesis-ovengeleon

908220131434a6392920fc12a53b411efd473fec — jacqueline 2 months ago ab73482
fix colours
1 files changed, 8 insertions(+), 12 deletions(-)

M src/main.cpp
M src/main.cpp => src/main.cpp +8 -12
@@ 48,18 48,14 @@ word colour(byte R, byte G, byte B) {
  return ( ((R & 0xF8) << 8) | ((G & 0xFC) << 3) | (B >> 3) );
}

word colour(uint32_t col) {
  return colour((col & 0xFF0000) >> 4, (col & 0xFF00) >> 2, (col & 0xFF));
}

static const word kColorText = ST77XX_WHITE;
static const word kColorBackground = colour(0x1e0010);
static const word kColorSafeTemp = colour(0x131218);
static const word kColorWarningTemp = colour(0xDCC8FF);
static const word kColorDangerTemp = colour(0xC5A3FF);
static const word kColorGraphLines = colour(0xFFB8D1);
static const word kColorIdealGraph = colour(0xBFBFBF);
static const word kColorActualGraph = colour(0xF8F8F2);
static const word kColorText = colour(248, 248, 242);
static const word kColorBackground = colour(30, 0, 16);
static const word kColorSafeTemp = colour(19, 18, 24);
static const word kColorWarningTemp = colour(220, 200, 255);
static const word kColorDangerTemp = colour(255, 184, 209);
static const word kColorGraphLines = colour(197, 163, 255);
static const word kColorIdealGraph = colour(191, 191, 191);
static const word kColorActualGraph = colour(248, 248, 242);

using std::string;
using std::ostringstream;