mirror of
https://codeberg.org/armin/sm-26.git
synced 2026-10-11 17:01:53 +02:00
Fix LCD sizing, nav button overflow, remove knob thumbs
This commit is contained in:
parent
001a5a5324
commit
4a761729f8
3 changed files with 31 additions and 36 deletions
|
|
@ -50,7 +50,7 @@ void SM26AudioProcessorEditor::setupKnobs()
|
|||
knobSliders[i].setRange (0.0, 1.0, 0.001);
|
||||
knobSliders[i].setColour (juce::Slider::rotarySliderFillColourId, juce::Colour (0xFF3A8A28));
|
||||
knobSliders[i].setColour (juce::Slider::rotarySliderOutlineColourId, juce::Colour (0xFF1A2E0A));
|
||||
knobSliders[i].setColour (juce::Slider::thumbColourId, juce::Colour (0xFFE0E0C0));
|
||||
knobSliders[i].setColour (juce::Slider::thumbColourId, juce::Colours::transparentBlack);
|
||||
knobSliders[i].addListener (this);
|
||||
addAndMakeVisible (knobSliders[i]);
|
||||
|
||||
|
|
@ -473,10 +473,10 @@ void SM26AudioProcessorEditor::resized()
|
|||
knobValueLabels[i].setBounds ((int) x, (int) (knobsY + knobSize + 18), (int) knobSize, 14);
|
||||
}
|
||||
|
||||
float navSize = 36.0f;
|
||||
float navGap = 4.0f;
|
||||
float navSize = 30.0f;
|
||||
float navGap = 3.0f;
|
||||
float navCenterX = totalW / 2.0f;
|
||||
float navCenterY = totalH - 48.0f;
|
||||
float navCenterY = totalH - 90.0f;
|
||||
|
||||
navUp.setBounds ((int) (navCenterX - navSize / 2), (int) (navCenterY - navSize - navGap),
|
||||
(int) navSize, (int) navSize);
|
||||
|
|
@ -492,7 +492,7 @@ void SM26AudioProcessorEditor::resized()
|
|||
navEsc.setBounds ((int) (navCenterX + navGap), (int) (navCenterY + navSize + navGap),
|
||||
(int) navSize, (int) navSize);
|
||||
|
||||
lcd.setBounds (14, 36, (int) totalW - 28, (int) totalH - 190);
|
||||
lcd.setBounds (14, 42, (int) totalW - 28, 150);
|
||||
|
||||
footer.setBounds (8, (int) totalH - 22, (int) totalW - 16, 16);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue