1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added ColourSelector::ColourSelectorOptions::editableColour flag to enable the colour preview box at the top of the component to be editable

This commit is contained in:
ed 2019-11-08 18:25:48 +00:00
parent ce9bb8b605
commit 889cb627d5
3 changed files with 100 additions and 21 deletions

View file

@ -87,7 +87,12 @@ public:
void clicked() override
{
auto* colourSelector = new ColourSelector();
auto* colourSelector = new ColourSelector (ColourSelector::showAlphaChannel
| ColourSelector::showColourAtTop
| ColourSelector::editableColour
| ColourSelector::showSliders
| ColourSelector::showColourspace);
colourSelector->setName ("background");
colourSelector->setCurrentColour (findColour (TextButton::buttonColourId));
colourSelector->addChangeListener (this);