new logo UI adaptation; replace screenshot

This commit is contained in:
Armin 2026-07-15 17:27:06 +02:00
commit 0199ac1f0a
2 changed files with 6 additions and 6 deletions

View file

@ -779,13 +779,13 @@ void MainContentComponent::paint(juce::Graphics& g) {
logoLoaded = true;
}
if (logoImage.isValid()) {
int gap = 8;
int logoH = 124 - gap * 2;
int logoW = logoImage.getHeight() > 0
? static_cast<int>(logoH * static_cast<double>(logoImage.getWidth()) / logoImage.getHeight())
: logoH;
int logoW = 440;
int logoH = logoImage.getWidth() > 0
? static_cast<int>(logoW * static_cast<double>(logoImage.getHeight()) / logoImage.getWidth())
: logoW;
int logoX = (getWidth() - logoW) / 2;
auto logoArea = juce::Rectangle<int>(logoX, gap, logoW, logoH);
int logoY = (124 - logoH) / 2;
auto logoArea = juce::Rectangle<int>(logoX, logoY, logoW, logoH);
juce::Graphics::ScopedSaveState saved(g);
g.setOpacity(0.8f);
g.drawImage(logoImage, logoArea.toFloat(), juce::RectanglePlacement::centred);