Skip to content

v0.6.0 UI6-M2: resize limits 720x720..1920x1200, spectrum absorbs vertical shortfall - #15

Open
SeamusMullan wants to merge 1 commit into
v0.6.0/ui6-m8-abcomparefrom
v0.6.0/ui6-m2-resize
Open

v0.6.0 UI6-M2: resize limits 720x720..1920x1200, spectrum absorbs vertical shortfall#15
SeamusMullan wants to merge 1 commit into
v0.6.0/ui6-m8-abcomparefrom
v0.6.0/ui6-m2-resize

Conversation

@SeamusMullan

Copy link
Copy Markdown
Member

Summary

Partial fix for UI6-M2.

  • New minimum 720 x 720 (was 760 x 720) so 1366 x 768 laptops with the host's arrange / browser strips visible can still fit the editor.
  • New maximum 1920 x 1200 (was 1600 x 1100) so 4K hosts can scale the editor without absurd whitespace on the sides.
  • resized() now treats the spectrum block as a flex region: it absorbs vertical shortfall down to 130 px while band bar + controlTabs keep their full size so every control stays usable. Above default height it stays at the original 200 px (the visualiser doesn't benefit from extra vertical past that without a redesign).

True 720 x 620 (the threshold target) requires DirektFlexContainer adoption across the strip layout. That is heavy churn that overlaps with UI6-C4 (spectral-axis rebuild), so it is scoped for v0.6.1 follow-up.

Refs v0.6.0-threshold.md UI6-M2.

Dependencies

Test plan

  • cmake --build build --target BandGate_VST3 succeeds.
  • Open the editor at default size — visually identical to v0.5.0 + the AB strip.
  • Drag the editor down to 720 x 720 — confirm spectrum is shorter but all controls remain usable.
  • Drag up to 1920 x 1200 — confirm no clipping and no absurd dead bands.

🤖 Generated with Claude Code

…ll in spectrum

UI6-M2 partial:
- New minimum 720x720 (was 760x720) so 1366x768 laptops with the host's
  arrange / browser strips visible can still fit the editor.
- New maximum 1920x1200 (was 1600x1100) so 4K hosts can scale the editor
  up without absurd whitespace on the sides.
- resized() now sizes the spectrum block as a flex region: it absorbs
  vertical shortfall down to 130 px (band bar + controlTabs keep their
  full size so every control stays usable). Above the default height it
  stays at the original 200 px — the visualiser does not benefit from
  extra vertical past that without a redesign.

True 720x620 (the threshold target) needs DirektFlexContainer adoption
across the strip layout; that is heavy churn and scoped for v0.6.1.

Refs v0.6.0-threshold.md UI6-M2.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 25, 2026 18:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the BandGate editor’s resize constraints and updates the layout so the spectrum visualizer can shrink vertically to preserve usability of the control regions when vertical space is constrained (UI6-M2).

Changes:

  • Updated editor resize limits to 720×720 .. 1920×1200.
  • Modified PluginEditor::resized() to compute a dynamic spectrum height (down to a minimum) based on remaining vertical space.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/PluginEditor.cpp
@@ -187,11 +187,12 @@ PluginEditor::PluginEditor (PluginProcessor& p)
spectrumViz.setTooltip ("Spectral overview and per-band gating. Vertical range controls are display-only.");

setSize (Layout::defaultWidth, Layout::defaultHeight);
Comment thread source/PluginEditor.cpp
Comment on lines +455 to +459
constexpr int kMinSpectrumH = 130;
const int fixedAfterSpectrum = Layout::gap + Layout::bandBarH + Layout::gap + Layout::controlsH;
const int spectrumAvail = area.getHeight() - fixedAfterSpectrum;
const int spectrumH = juce::jlimit (kMinSpectrumH, Layout::spectrumH, spectrumAvail);
spectrumViz.setBounds (area.removeFromTop (spectrumH));
Comment thread source/PluginEditor.cpp
Comment on lines +450 to +456
// UI6-M2: spectrum block absorbs vertical shortfall — at the editor minimum,
// the spectrum can shrink to kMinSpectrumH while the band bar + controlTabs
// keep their full size so every control stays usable. Above default height
// it stays at the original value (visualizer does not benefit from extra
// vertical past ~200 px without redesign).
constexpr int kMinSpectrumH = 130;
const int fixedAfterSpectrum = Layout::gap + Layout::bandBarH + Layout::gap + Layout::controlsH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants