diff --git a/src/InputNumberComponent.cpp b/src/InputNumberComponent.cpp index ed2edf0..015cebb 100644 --- a/src/InputNumberComponent.cpp +++ b/src/InputNumberComponent.cpp @@ -44,7 +44,7 @@ void InputNumberComponent::paint(Graphics &g) (isobus::VirtualTerminalObjectType::FontAttributes == child->get_object_type())) { auto font = std::static_pointer_cast(child); - auto colour = parentWorkingSet->get_colour(font->get_background_color()); + auto colour = parentWorkingSet->get_colour(font->get_colour()); Font juceFont(Font::getDefaultMonospacedFontName(), font->get_font_height_pixels(), Font::FontStyleFlags::plain); auto fontWidth = juceFont.getStringWidthFloat("1"); juceFont.setHorizontalScale(static_cast(font->get_font_width_pixels()) / fontWidth);