Skip to content

Commit

Permalink
Fix typein and some text colors not changing because of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mthierman committed May 4, 2024
1 parent dbc60d4 commit 424a51b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src-juce/AWConsolidatedEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,5 +1415,20 @@ AWConsolidatedAudioProcessorEditor::createKeyboardFocusTraverser()
void AWConsolidatedAudioProcessorEditor::darkModeSettingChanged()
{
juce::Desktop::getInstance().isDarkModeActive() ? lnf->setDarkTheme() : lnf->setLightTheme();

docBodyLabel->setColour(juce::Label::textColourId, findColour(ColourIds::documentationHeader));
docBodyEd->applyColourToAllText(findColour(ColourIds::documentationForeground));

menuPicker->typeinEd->setColour(juce::TextEditor::ColourIds::textColourId,
findColour(ColourIds::pickerTypeinForeground));
menuPicker->typeinEd->setColour(juce::TextEditor::ColourIds::backgroundColourId,
findColour(ColourIds::pickerTypeinBackground));
menuPicker->typeinEd->applyColourToAllText(findColour(ColourIds::pickerTypeinForeground));

menuPicker->listBox->setColour(juce::ListBox::backgroundColourId,
findColour(ColourIds::pickerListBoxBackground));
menuPicker->listBox->setColour(juce::ListBox::outlineColourId,
findColour(ColourIds::pickerListBoxStroke));

repaint();
}

0 comments on commit 424a51b

Please sign in to comment.