I'm trying to draw a triangular button. It seems simple but there must be something I'm missing because I can't for the life of me get it to work. I've set up a custom look and feel and tried overriding the button methods. Currently, I'm using drawButtonBackground, but I've tried all the others with no success. This is the code I have inside my drawButtonBackground function:
int x = button.getScreenX(); int y = button.getScreenY(); int width = button.getWidth(); int height = button.getHeight(); g.setColour(Colour(255,255,255)); Path triangle; triangle.addTriangle(x, y + height / 2, x + width, y, x + width, y + height); g.fillPath(triangle);
When I run this, I know the function is getting called because I've printed out debug statements. Yet nothing renders on the screen. Still fairly new to JUCE, I have no idea what's going wrong and could really use some advice. Thanks in advance!