innit
This commit is contained in:
2026-01-20 12:56:34 +13:00
commit a2faa1955f
73 changed files with 1906 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
/*
==============================================================================
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);
}