Browse Source

Set default LedDisplayTextField::bgColor.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
ad426537c4
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/app/LedDisplay.cpp

+ 3
- 2
src/app/LedDisplay.cpp View File

@@ -38,9 +38,9 @@ void LedDisplaySeparator::draw(const DrawArgs& args) {
LedDisplayChoice::LedDisplayChoice() { LedDisplayChoice::LedDisplayChoice() {
box.size = mm2px(math::Vec(0, 28.0 / 3)); box.size = mm2px(math::Vec(0, 28.0 / 3));
fontPath = asset::system("res/fonts/ShareTechMono-Regular.ttf"); fontPath = asset::system("res/fonts/ShareTechMono-Regular.ttf");
textOffset = math::Vec(10, 18);
color = nvgRGB(0xff, 0xd7, 0x14); color = nvgRGB(0xff, 0xd7, 0x14);
bgColor = nvgRGBAf(0, 0, 0, 0); bgColor = nvgRGBAf(0, 0, 0, 0);
textOffset = math::Vec(10, 18);
} }




@@ -80,8 +80,9 @@ void LedDisplayChoice::onButton(const ButtonEvent& e) {


LedDisplayTextField::LedDisplayTextField() { LedDisplayTextField::LedDisplayTextField() {
fontPath = asset::system("res/fonts/ShareTechMono-Regular.ttf"); fontPath = asset::system("res/fonts/ShareTechMono-Regular.ttf");
color = nvgRGB(0xff, 0xd7, 0x14);
textOffset = math::Vec(5, 5); textOffset = math::Vec(5, 5);
color = nvgRGB(0xff, 0xd7, 0x14);
bgColor = nvgRGB(0x00, 0x00, 0x00);
} }






Loading…
Cancel
Save