@@ -833,8 +833,8 @@ void SyncControlButton::timerCallback()
833833
834834void SyncControlButton::paintButton (Graphics& g, bool isMouseOver, bool isButtonDown)
835835{
836- g.setColour (Colours::grey );
837- g.fillRoundedRectangle (0 , 0 , getWidth (), getHeight (), 4 );
836+ g.setColour (findColour (ThemeColours::componentParentBackground) );
837+ g.fillRoundedRectangle (1 , 1 , getWidth () - 2 , getHeight () - 2 , 3 );
838838
839839 switch (node->synchronizer .getStatus (streamKey))
840840 {
@@ -843,12 +843,12 @@ void SyncControlButton::paintButton (Graphics& g, bool isMouseOver, bool isButto
843843 if (isMouseOver)
844844 {
845845 // LIGHT GREY
846- g.setColour (Colour ( 150 , 150 , 150 ));
846+ g.setColour (findColour (ThemeColours::defaultFill). contrasting ( 0 . 2f ));
847847 }
848848 else
849849 {
850850 // DARK GREY
851- g.setColour (Colour ( 110 , 110 , 110 ));
851+ g.setColour (findColour (ThemeColours::defaultFill ));
852852 }
853853 break ;
854854 }
@@ -882,7 +882,7 @@ void SyncControlButton::paintButton (Graphics& g, bool isMouseOver, bool isButto
882882 }
883883 }
884884
885- g.fillRoundedRectangle (2 , 2 , getWidth () - 4 , getHeight () - 4 , 2 );
885+ g.fillRoundedRectangle (2 , 2 , getWidth () - 4 , getHeight () - 4 , 3 );
886886
887887 if (node->isMainDataStream (streamKey))
888888 {
@@ -917,10 +917,10 @@ TtlLineParameterEditor::TtlLineParameterEditor (Parameter* param,
917917 ttlParam->getMaxAvailableLines ());
918918
919919 syncControlButton->addListener (this );
920- syncControlButton->setBounds (0 , 0 , 15 , 15 );
920+ syncControlButton->setBounds (0 , 0 , 16 , 16 );
921921 addAndMakeVisible (syncControlButton.get ());
922922
923- setBounds (0 , 0 , 15 , 15 );
923+ setBounds (0 , 0 , 16 , 16 );
924924 editor = (Component*) syncControlButton.get ();
925925 }
926926 else
0 commit comments