File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,7 @@ class Console : public Component
101101
102102 addAndMakeVisible (consoleInput);
103103 addAndMakeVisible (viewport);
104-
105- consoleInput.setColour (TextEditor::backgroundColourId,findColour (PlugDataColour::sidebarBackgroundColourId));
106- consoleInput.setColour (TextEditor::outlineColourId,findColour (PlugDataColour::sidebarBackgroundColourId));
107- consoleInput.setColour (TextEditor::focusedOutlineColourId,findColour (PlugDataColour::sidebarBackgroundColourId));
104+
108105 consoleInput.setBorder ({2 , 1 , 0 , 0 });
109106
110107 consoleInput.onReturnKey = [this , pd](){
@@ -121,8 +118,19 @@ class Console : public Component
121118 settingsValues[3 ] = true ;
122119 settingsValues[4 ] = true ;
123120
121+ lookAndFeelChanged ();
122+
124123 resized ();
125124 }
125+
126+ void lookAndFeelChanged () override
127+ {
128+ consoleInput.setColour (TextEditor::backgroundColourId, findColour (PlugDataColour::sidebarBackgroundColourId));
129+ consoleInput.setColour (TextEditor::outlineColourId, findColour (PlugDataColour::sidebarBackgroundColourId));
130+ consoleInput.setColour (TextEditor::focusedOutlineColourId, findColour (PlugDataColour::sidebarBackgroundColourId));
131+
132+ consoleInput.applyColourToAllText (findColour (PlugDataColour::panelTextColourId));
133+ }
126134
127135 UnorderedMap<String, Object*> getUniqueObjectNames (Canvas* cnv)
128136 {
You can’t perform that action at this time.
0 commit comments