From 7a5ab4d31fea955f95a09a15da5a4270bccc42d5 Mon Sep 17 00:00:00 2001 From: James Ball Date: Mon, 1 Jan 2024 15:28:57 +0000 Subject: [PATCH] Reduce how dark the disabled audio effect names are --- Source/components/EffectsListComponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/components/EffectsListComponent.cpp b/Source/components/EffectsListComponent.cpp index 8aeebac..f3611c0 100644 --- a/Source/components/EffectsListComponent.cpp +++ b/Source/components/EffectsListComponent.cpp @@ -15,7 +15,7 @@ EffectsListComponent::EffectsListComponent(DraggableListBox& lb, AudioEffectList this->effect.setValue(i, effectComponent->slider.getValue()); } }; - + list.setEnabled(selected.getToggleState()); selected.onClick = [this, weakEffectComponent] { if (auto effectComponent = weakEffectComponent.lock()) { @@ -68,7 +68,7 @@ void EffectsListComponent::paint(juce::Graphics& g) { void EffectsListComponent::paintOverChildren(juce::Graphics& g) { if (!selected.getToggleState()) { - g.setColour(juce::Colours::black.withAlpha(0.5f)); + g.setColour(juce::Colours::black.withAlpha(0.3f)); auto bounds = list.getBounds(); bounds.removeFromBottom(2); g.fillRect(bounds);