gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit ded60c8a54b708045f19a8bab3e0cd414bd94e1e
parent 4214545f002cd5f782b71c9037d828cbcd48329b
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat,  4 May 2024 23:59:17 +0200

fix text button background color not used to paint the background

Diffstat:
Msource/juceUiLib/textbuttonStyle.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/source/juceUiLib/textbuttonStyle.cpp b/source/juceUiLib/textbuttonStyle.cpp @@ -4,6 +4,8 @@ namespace genericUI { void TextButtonStyle::drawButtonBackground(juce::Graphics& _graphics, juce::Button& _button, const juce::Colour& backgroundColour, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) { + if(m_bgColor.getAlpha()) + _graphics.fillAll(m_bgColor); } juce::Font TextButtonStyle::getTextButtonFont(juce::TextButton& _textButton, int buttonHeight)