This commit is contained in:
Maurice Grönwoldt 2020-06-14 21:14:28 +02:00
commit a27c62f062
49 changed files with 1171 additions and 385 deletions

View file

@ -3,3 +3,20 @@
//
#include "FlatLook.h"
#include "../../Core/Config.h"
void FlatLook::drawButtonBackground (Graphics& graphics, Button& button, const Colour& backgroundColour,
bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)
{
auto theme = Config::getInstance()->getCurrentTheme();
auto buttonArea = button.getLocalBounds();
if (shouldDrawButtonAsHighlighted)
{
graphics.setColour(theme->getColour(ThemeColour::accent));
}
else
{
graphics.setColour(theme->getColour(ThemeColour::accent_two));
}
graphics.drawRect(buttonArea);
}

View file

@ -11,6 +11,8 @@ class FlatLook : public LookAndFeel_V4
{
private:
public:
void drawButtonBackground (Graphics& graphics, Button& button, const Colour& backgroundColour,
bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override;
protected:
};
#endif //VENO_FLATLOOK_H

View file

@ -7,7 +7,7 @@
LookHandler::LookHandler ()
{
selectLook (Config::getInstance ()->getCurrentLook ());
selectLook(Config::getInstance()->getCurrentLook());
}
LookHandler::~LookHandler ()

View file

@ -25,6 +25,6 @@ public:
LookAndFeel_V4* getLook ();
protected:
//currently both available themes are CrazyLook <-- (this is a fun one xD) and FlatLook
LookAndFeel_V4* m_feels[2] = {new FlatLook (), new CrazyLook ()};
LookAndFeel_V4* m_feels[2] = {new FlatLook(), new CrazyLook()};
};
#endif //VENO_LOOKHANDLER_H