Skip to content
Snippets Groups Projects
Commit 4d6317fb authored by Ronny Eichler's avatar Ronny Eichler
Browse files

GraphViewer nodes use editor color

parent d0113186
Branches
No related tags found
No related merge requests found
......@@ -231,6 +231,16 @@ public:
/** Called when an editor's processor updates its settings (mainly to update channel count).*/
virtual void update();
/** Allows other UI elements to use background color of editor. */
Colour getBackgroundColor() {
return backgroundColor;
}
/** Allows other elements to use background gradient of editor. */
ColourGradient getBackgroundGradient() {
return backgroundGradient;
}
/** Called by the update() method to allow the editor to update its custom settings.*/
virtual void updateSettings() {}
......@@ -344,7 +354,7 @@ private:
bool isEnabled;
bool isCollapsed;
/**Used to determine if an editor is a splitter or Merger to avoid calling on CHannelSelector*/
/**Used to determine if an editor is a splitter or Merger to avoid calling on ChannelSelector*/
bool isSplitOrMerge;
int tNum;
......
......@@ -468,11 +468,11 @@ void GraphNode::paint(Graphics& g)
}
else
{
g.setColour(Colours::lightgrey);
g.setColour(editor->getBackgroundColor());
g.fillEllipse(2,2,16,16);
}
g.drawText(getName(), 25, 0, getWidth()-25, 20, Justification::left, true);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment