From 4ced7ea5fba573b8631a12152d0b7f5706b0a883 Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Wed, 4 Dec 2024 15:45:30 +0100 Subject: [PATCH] Fix welcome panel colour theme issue --- Source/Components/WelcomePanel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Components/WelcomePanel.h b/Source/Components/WelcomePanel.h index c293091a5..af5832e42 100644 --- a/Source/Components/WelcomePanel.h +++ b/Source/Components/WelcomePanel.h @@ -121,13 +121,13 @@ class WelcomePanel : public Component auto lB = bounds.toFloat().expanded(0.5f); { - auto bgCol = !isHovered ? convertColour(findColour(PlugDataColour::canvasBackgroundColourId)) : convertColour(findColour(PlugDataColour::toolbarBackgroundColourId)); + auto bgCol = !isHovered ? convertColour(findColour(PlugDataColour::panelForegroundColourId)) : convertColour(findColour(PlugDataColour::toolbarBackgroundColourId)); // Draw border around nvgDrawRoundedRect(nvg, lB.getX(), lB.getY(), lB.getWidth(), lB.getHeight(), bgCol, convertColour(findColour(PlugDataColour::toolbarOutlineColourId)), Corners::largeCornerRadius); } - auto const bgColour = findColour(PlugDataColour::canvasBackgroundColourId); + auto const bgColour = findColour(PlugDataColour::panelForegroundColourId); auto const bgCol = convertColour(bgColour); auto const newOpenIconCol = convertColour(bgColour.contrasting().withAlpha(0.32f)); auto const iconSize = 48; @@ -461,7 +461,7 @@ class WelcomePanel : public Component auto lB = bounds.toFloat().expanded(0.5f); // Draw background even for images incase there is a transparent PNG - nvgDrawRoundedRect(nvg, lB.getX(), lB.getY(), lB.getWidth(), lB.getHeight(), convertColour(findColour(PlugDataColour::canvasBackgroundColourId)), convertColour(findColour(PlugDataColour::toolbarOutlineColourId)), Corners::largeCornerRadius); + nvgDrawRoundedRect(nvg, lB.getX(), lB.getY(), lB.getWidth(), lB.getHeight(), convertColour(findColour(PlugDataColour::panelForegroundColourId)), convertColour(findColour(PlugDataColour::toolbarOutlineColourId)), Corners::largeCornerRadius); if (thumbnailImageData.isValid()) { // Render the thumbnail image file that is in the root dir of the pd patch auto sB = bounds.toFloat().reduced(0.2f);