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:
parent
ce9bb8b605
commit
889cb627d5
3 changed files with 100 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue