Fixed an issue where the menu arrows were not always scaled cleanly

This commit is contained in:
Leon Styhre 2023-09-27 20:42:23 +02:00
parent ee2573345f
commit a3b49b87b0

View file

@ -193,6 +193,7 @@ std::shared_ptr<ComponentGrid> MenuComponent::makeButtonGrid(
std::shared_ptr<ImageComponent> MenuComponent::makeArrow()
{
auto bracket = std::make_shared<ImageComponent>();
bracket->setLinearInterpolation(true);
bracket->setResize(0, Font::get(FONT_SIZE_MEDIUM)->getLetterHeight());
bracket->setImage(":/graphics/arrow.svg");
bracket->setColorShift(mMenuColorPrimary);