28 lines
926 B
C++
28 lines
926 B
C++
/*
|
|
==============================================================================
|
|
|
|
FilterButtonLook.cpp
|
|
Created: 16 Jan 2026 8:58:45pm
|
|
Author: esca
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#include "FilterButtonLook.h"
|
|
#include "BinaryData.h"
|
|
#include "juce_graphics/juce_graphics.h"
|
|
|
|
void FilterButtonLook::setImages(){
|
|
lp = juce::ImageCache::getFromMemory(BinaryData::lpon_png, BinaryData::lpon_pngSize);
|
|
hp = juce::ImageCache::getFromMemory(BinaryData::hpon_png, BinaryData::hpon_pngSize);
|
|
}
|
|
|
|
void FilterButtonLook::drawButtonBackground(juce::Graphics& g, juce::Button& button, const juce::Colour& backgroundColour, bool, bool isButtonDown){
|
|
int w = 94;
|
|
int h = 29;
|
|
if(button.getToggleState()){
|
|
g.drawImage(hp, 0, 0, w, h, 0, 0, w, h, false);
|
|
}
|
|
else g.drawImage(lp, 0, 0, w, h, 0, 0, w, h, false);
|
|
}
|