mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Add bottom status bar with git build info and compile time
This commit is contained in:
parent
cd2caf7821
commit
a2485907ef
6 changed files with 118 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "PluginEditor.h"
|
||||
#include "BuildInfo.h"
|
||||
#include <BinaryData.h>
|
||||
|
||||
namespace
|
||||
|
|
@ -698,6 +699,12 @@ MainContentComponent::MainContentComponent(ChromaFlockProcessor& p)
|
|||
setupParam(reverbDampKnob, reverbDampAttach, "reverbDamping", "DAMP");
|
||||
setupParam(reverbMixKnob, reverbMixAttach, "reverbMix", "MIX");
|
||||
|
||||
// Bottom status bar: git build info + actual compilation time
|
||||
addAndMakeVisible(statusBar);
|
||||
statusBar.setColour(juce::Label::textColourId, juce::Colour(0xff888888));
|
||||
statusBar.setFont(juce::Font(juce::FontOptions(11.0f)));
|
||||
statusBar.setText(juce::String(getBuildInfoString()), juce::dontSendNotification);
|
||||
|
||||
// Preset section: title button + dot-matrix LCD + prev/next
|
||||
presetButton.setColour(juce::TextButton::buttonColourId, juce::Colour(0xcc2a2a2a));
|
||||
presetButton.setColour(juce::TextButton::textColourOffId, juce::Colour(0xffccaa44));
|
||||
|
|
@ -1175,6 +1182,10 @@ void MainContentComponent::paint(juce::Graphics& g) {
|
|||
|
||||
// Arpeggiator section (replaces the removed spectrum analyzer)
|
||||
drawSubSection(860, 754, 790, 128, "ARPEGGIATOR", 6);
|
||||
|
||||
// Status bar divider
|
||||
g.setColour(juce::Colour(0xff333333));
|
||||
g.drawHorizontalLine(1034, 10.0f, 1650.0f);
|
||||
}
|
||||
|
||||
void MainContentComponent::resized() {
|
||||
|
|
@ -1416,6 +1427,9 @@ void MainContentComponent::resized() {
|
|||
|
||||
// Piano roll
|
||||
pianoRoll.setBounds(10, 892, 1640, 136);
|
||||
|
||||
// Status bar (bottom strip)
|
||||
statusBar.setBounds(10, 1036, 1640, 20);
|
||||
}
|
||||
|
||||
// ===== PianoRollComponent =====
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue