Skip to content

Commit 8c140a6

Browse files
committed
Add lookAndFeelChanged method to update script path text color
1 parent b2318ac commit 8c140a6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Source/PythonProcessorEditor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@ void PythonProcessorEditor::setPathLabelText (String text, String tooltip)
104104
scriptPathLabel->setTooltip (tooltip);
105105
scriptPathLabel->setCaretPosition (0);
106106
}
107+
108+
void PythonProcessorEditor::lookAndFeelChanged()
109+
{
110+
scriptPathLabel->applyColourToAllText (findColour (ThemeColours::defaultText));
111+
}

Source/PythonProcessorEditor.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class PythonProcessorEditor : public GenericEditor,
7373
/** Sets the text & tooltip of the path label */
7474
void setPathLabelText (String text, String tooltip);
7575

76+
/** Called when the look and feel changes */
77+
void lookAndFeelChanged() override;
78+
7679
private:
7780
PythonProcessor* pythonProcessor;
7881

0 commit comments

Comments
 (0)