Skip to content

Commit

Permalink
More layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 4, 2024
1 parent 5ece471 commit 5b10921
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Dialogs/PatchStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class PatchFullDisplay : public Component, public DownloadPool::DownloadListener
showPatch(patch, patches);
};

setSize(840, 1180);
setSize(840, 1100);

viewport.setScrollBarsShown(true, false);
viewport.setViewedComponent(this, false);
Expand Down Expand Up @@ -687,7 +687,7 @@ class PatchFullDisplay : public Component, public DownloadPool::DownloadListener

g.fillAll(findColour(PlugDataColour::panelForegroundColourId));

auto contentArea = b.reduced(30, 10);
auto contentArea = b.reduced(20, 6);
auto textColour = findColour(PlugDataColour::panelTextColourId);
g.setColour(textColour);

Expand All @@ -713,7 +713,7 @@ class PatchFullDisplay : public Component, public DownloadPool::DownloadListener

layout.draw(g, contentArea.removeFromTop(30).toFloat());

auto extraInfoBounds = contentArea.removeFromTop(66).reduced(0, 8).translated(0, -4);
auto extraInfoBounds = contentArea.removeFromTop(72).reduced(0, 12).translated(0, -4);
Path p;
p.addRoundedRectangle(extraInfoBounds, Corners::largeCornerRadius);
StackShadow::renderDropShadow(hash("patch_extra_info"), g, p, Colour(0, 0, 0).withAlpha(0.1f), 7, { 0, 1 });
Expand Down Expand Up @@ -763,8 +763,8 @@ class PatchFullDisplay : public Component, public DownloadPool::DownloadListener

void resized() override
{
auto b = getLocalBounds().reduced(12);
auto buttonBounds = b.removeFromTop(196).removeFromTop(40).translated(-24, 12);
auto b = getLocalBounds().reduced(20, 6);
auto buttonBounds = b.removeFromTop(204).removeFromTop(40).translated(-10, 12);

image.setBounds(b.removeFromTop(500).withSizeKeepingCentre(460, 450));

Expand Down

0 comments on commit 5b10921

Please sign in to comment.