init
innit
This commit is contained in:
27
Source/FilterButtonLook.cpp
Normal file
27
Source/FilterButtonLook.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user