From b32dc0da712f7f90e9ad075a29d11903292cb09d Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Tue, 3 Sep 2024 13:33:10 -0400 Subject: [PATCH] Two tiny alignment and stroke width things for sample pane --- .../components/mapping-pane/SampleWaveform.cpp | 12 ++++++------ .../components/mapping-pane/VariantDisplay.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src-ui/app/edit-screen/components/mapping-pane/SampleWaveform.cpp b/src-ui/app/edit-screen/components/mapping-pane/SampleWaveform.cpp index 4a2e461c..69848511 100644 --- a/src-ui/app/edit-screen/components/mapping-pane/SampleWaveform.cpp +++ b/src-ui/app/edit-screen/components/mapping-pane/SampleWaveform.cpp @@ -485,8 +485,8 @@ void SampleWaveform::paint(juce::Graphics &g) g.fillPath(lowerFill[ch]); g.setColour(a1a); - g.strokePath(upperStroke[ch], juce::PathStrokeType(1)); - g.strokePath(lowerStroke[ch], juce::PathStrokeType(1)); + g.strokePath(upperStroke[ch], juce::PathStrokeType(0.5)); + g.strokePath(lowerStroke[ch], juce::PathStrokeType(0.5)); } } if (v.loopActive) @@ -521,12 +521,12 @@ void SampleWaveform::paint(juce::Graphics &g) g.fillPath(lowerFill[ch]); g.setColour(a1a); - g.strokePath(upperStroke[ch], juce::PathStrokeType(1)); - g.strokePath(lowerStroke[ch], juce::PathStrokeType(1)); + g.strokePath(upperStroke[ch], juce::PathStrokeType(0.5)); + g.strokePath(lowerStroke[ch], juce::PathStrokeType(0.5)); g.setColour(a2a.withAlpha(0.32f)); - g.strokePath(upperStroke[ch], juce::PathStrokeType(1)); - g.strokePath(lowerStroke[ch], juce::PathStrokeType(1)); + g.strokePath(upperStroke[ch], juce::PathStrokeType(0.5)); + g.strokePath(lowerStroke[ch], juce::PathStrokeType(0.5)); } } } diff --git a/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp b/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp index 73b1c83d..d3f266d4 100644 --- a/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp +++ b/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp @@ -439,9 +439,9 @@ void VariantDisplay::resized() editAllButton->setBounds(hP(55)); fileInfoButton->widget->setBounds(hP(hl.getHeight())); fileLabel->setBounds(hP(20)); - fileButton->setBounds(hP(-18)); + fileButton->setBounds(hP(-14)); - auto jogs = hP(18); + auto jogs = hP(14); prevFileButton->setBounds(jogs.withTrimmedBottom(jogs.getHeight() / 2)); nextFileButton->setBounds(jogs.withTrimmedTop(jogs.getHeight() / 2));