From ad426537c42a2583d1d1fbb5ac55bb1acafd8e18 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 1 Jun 2021 16:50:18 -0400 Subject: [PATCH] Set default LedDisplayTextField::bgColor. --- src/app/LedDisplay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/LedDisplay.cpp b/src/app/LedDisplay.cpp index a9b8f287..0ad12b0e 100644 --- a/src/app/LedDisplay.cpp +++ b/src/app/LedDisplay.cpp @@ -38,9 +38,9 @@ void LedDisplaySeparator::draw(const DrawArgs& args) { LedDisplayChoice::LedDisplayChoice() { box.size = mm2px(math::Vec(0, 28.0 / 3)); fontPath = asset::system("res/fonts/ShareTechMono-Regular.ttf"); + textOffset = math::Vec(10, 18); color = nvgRGB(0xff, 0xd7, 0x14); bgColor = nvgRGBAf(0, 0, 0, 0); - textOffset = math::Vec(10, 18); } @@ -80,8 +80,9 @@ void LedDisplayChoice::onButton(const ButtonEvent& e) { LedDisplayTextField::LedDisplayTextField() { fontPath = asset::system("res/fonts/ShareTechMono-Regular.ttf"); - color = nvgRGB(0xff, 0xd7, 0x14); textOffset = math::Vec(5, 5); + color = nvgRGB(0xff, 0xd7, 0x14); + bgColor = nvgRGB(0x00, 0x00, 0x00); }