mirror of
https://codeberg.org/armin/ambivalence.git
synced 2026-09-01 04:10:48 +02:00
UI changes, layout redefinition
This commit is contained in:
parent
42cf8432bf
commit
1d9ba772fe
12 changed files with 536 additions and 528 deletions
|
|
@ -84,7 +84,7 @@ void DecayCurveViz::paint(juce::Graphics& g)
|
|||
// --- ER zone background ---
|
||||
{
|
||||
const float erZoneW = plotW * splitRatio;
|
||||
g.setColour(juce::Colour(0xFF1A2535));
|
||||
g.setColour(AmbivalenceColors::Surface);
|
||||
g.fillRect(plotX, plotY, erZoneW, plotH);
|
||||
}
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ void DecayCurveViz::paint(juce::Graphics& g)
|
|||
}
|
||||
|
||||
// --- axis label ---
|
||||
g.setFont(juce::Font(juce::FontOptions(8.5f)));
|
||||
g.setFont(juce::Font(juce::FontOptions(8.5f * zoomScale)));
|
||||
g.setColour(AmbivalenceColors::TextSecondary.withAlpha(0.6f));
|
||||
|
||||
for (float db = 0.0f; db >= -60.0f; db -= 20.0f) {
|
||||
|
|
@ -197,7 +197,7 @@ void DecayCurveViz::paint(juce::Graphics& g)
|
|||
// : wide 5px + marker + envelope fill
|
||||
// -------------------------------------------------------------------------
|
||||
if (!cachedERBypassed && cachedERTapCount > 0) {
|
||||
const juce::Colour blueColor = juce::Colour::fromRGB(80, 160, 230);
|
||||
const juce::Colour blueColor = AmbivalenceColors::AccentBlue;
|
||||
|
||||
// -- ER envelope fill region --
|
||||
if (cachedERTapCount >= 2) {
|
||||
|
|
@ -300,9 +300,9 @@ void DecayCurveViz::paint(juce::Graphics& g)
|
|||
|
||||
// --- zone label ---
|
||||
g.setFont(juce::Font(juce::FontOptions(
|
||||
"Helvetica Neue", 8.0f, juce::Font::bold)));
|
||||
"Helvetica Neue", 8.0f * zoomScale, juce::Font::bold)));
|
||||
|
||||
g.setColour(juce::Colour::fromRGB(80, 160, 230).withAlpha(0.9f));
|
||||
g.setColour(AmbivalenceColors::AccentBlue.withAlpha(0.9f));
|
||||
g.drawText("ER",
|
||||
(int)(plotX + 4), (int)(plotY + 2),
|
||||
30, 12, juce::Justification::centredLeft);
|
||||
|
|
@ -315,7 +315,7 @@ void DecayCurveViz::paint(juce::Graphics& g)
|
|||
40, 12, juce::Justification::centredLeft);
|
||||
}
|
||||
|
||||
g.setFont(juce::Font(juce::FontOptions(7.5f)));
|
||||
g.setFont(juce::Font(juce::FontOptions(7.5f * zoomScale)));
|
||||
g.setColour(AmbivalenceColors::TextSecondary.withAlpha(0.4f));
|
||||
g.drawText("0-200ms (x2)",
|
||||
(int)(plotX + 2), (int)(plotY + plotH - 14),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue