12 lines
384 B
C++
12 lines
384 B
C++
|
//
|
||
|
// Created by Alex Birch on 03/10/2017.
|
||
|
//
|
||
|
|
||
|
#include "MyColours.h"
|
||
|
|
||
|
Colour MyColours::getUIColourIfAvailable (LookAndFeel_V4::ColourScheme::UIColour uiColour, Colour fallback = Colour (0xff4d4d4d)) {
|
||
|
if (auto* v4 = dynamic_cast<LookAndFeel_V4*> (&LookAndFeel::getDefaultLookAndFeel()))
|
||
|
return v4->getCurrentColourScheme().getUIColour (uiColour);
|
||
|
|
||
|
return fallback;
|
||
|
}
|