From ff966cced6974d89d7b4c7b40cf6ea5218db270a Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Wed, 4 Dec 2024 02:21:09 +0100 Subject: [PATCH] GUI fixes --- Source/Components/WelcomePanel.h | 6 ++++-- Source/Dialogs/PatchStore.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Components/WelcomePanel.h b/Source/Components/WelcomePanel.h index 6c17673ef..f86e18a02 100644 --- a/Source/Components/WelcomePanel.h +++ b/Source/Components/WelcomePanel.h @@ -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); } diff --git a/Source/Dialogs/PatchStore.h b/Source/Dialogs/PatchStore.h index 39f9906b7..af22dfc43 100644 --- a/Source/Dialogs/PatchStore.h +++ b/Source/Dialogs/PatchStore.h @@ -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); @@ -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));