Reduce how dark the disabled audio effect names are

pull/207/head
James Ball 2024-01-01 15:28:57 +00:00 zatwierdzone przez James H Ball
rodzic 72cc253159
commit 7a5ab4d31f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);