Skip to content

Commit

Permalink
Merge pull request #1998 from alcomposer/lib-tile-work
Browse files Browse the repository at this point in the history
Set the store tile button position when there is no recent patches
  • Loading branch information
timothyschoen authored Dec 4, 2024
2 parents 3f6f1f4 + 6a17c41 commit 2146b41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Components/WelcomePanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ class WelcomePanel : public Component
auto const buttonY = getHeight() * 0.5f - 30;
newPatchTile->setBounds(rowBounds.withX(startX).withWidth(buttonWidth).withY(buttonY));
openPatchTile->setBounds(rowBounds.withX(startX + buttonWidth + tileSpacing).withWidth(buttonWidth).withY(buttonY));

auto firstTileBounds = rowBounds.removeFromLeft(actualTileWidth * 1.5f);
storeTile->setBounds(firstTileBounds);
} else {
auto firstTileBounds = rowBounds.removeFromLeft(actualTileWidth * 1.5f);
newPatchTile->setBounds(firstTileBounds);
Expand Down

0 comments on commit 2146b41

Please sign in to comment.