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:
parent
359238f0ed
commit
cf0e97fcc7
13 changed files with 151 additions and 69 deletions
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue