feat(gui): add GUI components and displays

This commit is contained in:
2026-09-08 14:55:22 +02:00
parent 5a80534a2e
commit a9abca9e15
19 changed files with 898 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "Panel.h"
namespace serum
{
Panel::Panel (const juce::String& t) : title (t)
{
}
void Panel::paint (juce::Graphics& g)
{
const auto b = getLocalBounds().toFloat();
g.setColour (theme::panel);
g.fillRoundedRectangle (b, 8.0f);
g.setColour (theme::outline);
g.drawRoundedRectangle (b.reduced (0.5f), 8.0f, 1.0f);
if (title.isNotEmpty())
{
g.setColour (theme::textDim);
g.setFont (juce::Font (11.0f, juce::Font::bold));
g.drawText (title, 10, 6, getWidth() - 20, 16, juce::Justification::left, false);
}
}
} // namespace serum