1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Projucer: Selected colour scheme is now stored and recalled. Multiple fixes for unreadable text in the GUI editor

This commit is contained in:
ed 2017-05-08 17:20:44 +01:00
parent 359238f0ed
commit cf0e97fcc7
13 changed files with 151 additions and 69 deletions

View file

@ -123,9 +123,9 @@ public:
void refresh() override
{
if (cachedValue.isUsingDefault())
setColour (textColourId, Colours::grey);
setColour (textColourId, findColour (widgetTextColourId).withMultipliedAlpha (0.5f));
else
setColour (textColourId, Colours::black);
setColour (textColourId, findColour (widgetTextColourId));
textEditor->setText (getText(), dontSendNotification);
}
@ -164,5 +164,7 @@ private:
void editorHidden (Label*, TextEditor&) override {}
void lookAndFeelChanged() override { refresh(); }
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TextWithDefaultPropertyComponent)
};