Skip to content

Commit

Permalink
GUI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 4, 2024
1 parent 514e182 commit ff966cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Source/Components/WelcomePanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,12 @@ class WelcomePanel : public Component
// Otherwise render the generated snapshot
snapshotImage.render(nvg, bounds.withTrimmedBottom(32));
} else {
auto placeholderIconColour = LookAndFeel::getDefaultLookAndFeel().findColour(PlugDataColour::objectSelectedOutlineColourId).withAlpha(0.22f);

// We draw the plugdata logo if library tiles don't have a thumbnail (patch snapshot is too busy)
nvgFillColor(nvg, NVGComponent::convertColour(findColour(PlugDataColour::panelTextColourId).withAlpha(0.0625f)));
nvgFillColor(nvg, NVGComponent::convertColour(placeholderIconColour));
nvgFontFace(nvg, "icon_font-Regular");
nvgFontSize(nvg, 80.0f);
nvgFontSize(nvg, 68.0f);
nvgTextAlign(nvg, NVG_ALIGN_CENTER | NVG_ALIGN_MIDDLE);
nvgText(nvg, bounds.getCentreX(), (bounds.getHeight() - 30) * 0.5f, Icons::PlugdataIconStandard.toRawUTF8(), nullptr);
}
Expand Down
4 changes: 2 additions & 2 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, 1100);
setSize(840, 1084);

viewport.setScrollBarsShown(true, false);
viewport.setViewedComponent(this, false);
Expand Down Expand Up @@ -764,7 +764,7 @@ class PatchFullDisplay : public Component, public DownloadPool::DownloadListener
void resized() override
{
auto b = getLocalBounds().reduced(20, 6);
auto buttonBounds = b.removeFromTop(204).removeFromTop(40).translated(-10, 12);
auto buttonBounds = b.removeFromTop(204).removeFromTop(40).translated(-11, 12);

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

Expand Down

0 comments on commit ff966cc

Please sign in to comment.