@@ -99,8 +99,8 @@ class W_CytonImpedance extends Widget {
9999 // Init the electrode map and fill and create signal check buttons
100100 initCytonImpedanceMap();
101101
102- cytonResetAllChannels = createCytonResetChannelsButton(" cytonResetAllChannels" , " Reset Channels" , (int )(x + padding_3 ), (int )(y + padding_3 - navHeight ), 90 , navHeight - 6 , p5, 12 , colorNotPressed, OPENBCI_DARKBLUE );
103- cytonImpedanceMasterCheck = createCytonImpMasterCheckButton(" cytonImpedanceMasterCheck" , " Check All Channels" , (int )(x + padding_3* 2 + 90 ), (int )(y + padding_3 - navHeight ), 120 , navHeight - 6 , p5, 12 , colorNotPressed, OPENBCI_DARKBLUE );
102+ cytonResetAllChannels = createCytonResetChannelsButton(" cytonResetAllChannels" , " Reset Channels" , (int )(x0 + 1 ), (int )(y0 + navHeight + 1 ), 90 , navHeight - 3 , p5, 12 , colorNotPressed, OPENBCI_DARKBLUE );
103+ cytonImpedanceMasterCheck = createCytonImpMasterCheckButton(" cytonImpedanceMasterCheck" , " Check All Channels" , (int )(x0 + 1 + padding_3 + 90 ), (int )(y0 + navHeight + 1 ), 120 , navHeight - 3 , p5, 12 , colorNotPressed, OPENBCI_DARKBLUE );
104104 errorThreshold = new SignalCheckThresholdUI (threshold_ui_cp5, " errorThreshold" , x + tableWidth + padding, y + h - navH, thresholdTFWidth, thresholdTFHeight, SIGNAL_CHECK_RED , signalCheckMode);
105105 warningThreshold = new SignalCheckThresholdUI (threshold_ui_cp5, " warningThreshold" , x + tableWidth + padding, y + h - navH/ 2 , thresholdTFWidth, thresholdTFHeight, SIGNAL_CHECK_YELLOW , signalCheckMode);
106106 }
@@ -192,8 +192,8 @@ class W_CytonImpedance extends Widget {
192192 imp_buttons_cp5. setGraphics(pApplet, 0 , 0 );
193193 threshold_ui_cp5. setGraphics(pApplet, 0 , 0 );
194194
195- cytonResetAllChannels. setPosition((int )(x + padding_3 ), (int )(y + padding_3 - navHeight ));
196- cytonImpedanceMasterCheck. setPosition((int )(x + padding_3* 2 + 90 ), (int )(y + padding_3 - navHeight ));
195+ cytonResetAllChannels. setPosition((int )(x0 + 1 ), (int )(y0 + navHeight + 1 ));
196+ cytonImpedanceMasterCheck. setPosition((int )(x0 + 1 + padding_3 + 90 ), (int )(y0 + navHeight + 1 ));
197197
198198 resizeTable();
199199
@@ -431,6 +431,7 @@ class W_CytonImpedance extends Widget {
431431 private Button createCytonImpMasterCheckButton (String name , String text , int _x , int _y , int _w , int _h , PFont _font , int _fontSize , color _bg , color _textColor ) {
432432 final Button myButton = createButton(cp5_widget, name, text, _x, _y, _w, _h, _font, _fontSize, _bg, _textColor);
433433 myButton. setSwitch(true );
434+ myButton. setBorderColor(OBJECT_BORDER_GREY );
434435 myButton. setVisible(signalCheckMode == CytonSignalCheckMode . IMPEDANCE );
435436 myButton. onRelease(new CallbackListener () {
436437 public void controlEvent (CallbackEvent theEvent ) {
@@ -462,6 +463,7 @@ class W_CytonImpedance extends Widget {
462463 final Button myButton = createButton(cp5_widget, name, text, _x, _y, _w, _h, _font, _fontSize, _bg, _textColor);
463464 // myButton.setSwitch(true);
464465 myButton. setVisible(signalCheckMode == CytonSignalCheckMode . IMPEDANCE );
466+ myButton. setBorderColor(OBJECT_BORDER_GREY );
465467 myButton. onRelease(new CallbackListener () {
466468 public void controlEvent (CallbackEvent theEvent ) {
467469 println (" Cyton Impedance Check: User clicked reset all channel settings." );
0 commit comments