- save
This commit is contained in:
parent
ac22ea5e75
commit
a27c62f062
49 changed files with 1171 additions and 385 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
LookHandler::LookHandler ()
|
||||
{
|
||||
selectLook (Config::getInstance ()->getCurrentLook ());
|
||||
selectLook(Config::getInstance()->getCurrentLook());
|
||||
}
|
||||
|
||||
LookHandler::~LookHandler ()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue