Skip to content

Commit 124ca35

Browse files
authored
Merge pull request #1054 from OpenBCI/5.1.0-second-team-review
5.1.0 second team review
2 parents ecb4198 + fc4476e commit 124ca35

12 files changed

Lines changed: 93 additions & 43 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
* Update Band Power widget and add Average Band Power data type to Networking Widget
1818
* Update ControlP5 Library to 2.3.3 and change ScrollableList behavior to be more consistent with other front-end libraries
1919
* Remove old multi-line filter buttons in TopNav that draw incorrectly on some PCs #1013
20+
* Minor UI/UX improvements to Spectrogram widget to increase clarity for all users
21+
* Add slower options for FFT data smoothing
22+
* Fix certain Textfield and TextArea fonts not drawing correctly on some Macs
2023

2124
# v5.0.9
2225

OpenBCI_GUI/ADS1299SettingsController.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class ADS1299SettingsController {
387387
.setPosition(0, 0)
388388
.setCaptionLabel("")
389389
.setSize(120, 20)
390-
.setFont(f2)
390+
.setFont(createFont("Arial", 15, true))
391391
.setFocus(false)
392392
.setColor(color(26, 26, 26))
393393
.setColorBackground(color(255, 255, 255)) // text field bg color

OpenBCI_GUI/ConsoleLog.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ static class ConsoleWindow extends PApplet implements Runnable {
6565

6666
clipboardCopy = new ClipHelper();
6767
cp5 = new ControlP5(this);
68-
68+
PFont textAreaFont = createFont("Arial", 12, true);
6969
consoleTextArea = cp5.addTextarea("ConsoleWindow")
7070
.setPosition(0, headerHeight)
7171
.setSize(width, height - headerHeight)
72-
.setFont(p5)
72+
.setFont(textAreaFont)
7373
.setLineHeight(18)
7474
.setColor(color(242))
7575
.setColorBackground(color(42, 100))

OpenBCI_GUI/ControlPanel.pde

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ class SerialBox {
492492

493493
private void createAutoConnectButton(String name, String text, int _x, int _y, int _w, int _h) {
494494
autoConnectButton = createSBButton(name, text, _x, _y, _w, _h);
495+
autoConnectButton.setColorBackground(TURN_ON_GREEN);
495496
autoConnectButton.onRelease(new CallbackListener() {
496497
public void controlEvent(CallbackEvent theEvent) {
497498
controlPanel.comPortBox.attemptAutoConnectCyton();
@@ -999,7 +1000,7 @@ class WifiBox {
9991000
.setPosition(x + 90, y + 100)
10001001
.setCaptionLabel("")
10011002
.setSize(w - padding*2, 26)
1002-
.setFont(f2)
1003+
.setFont(createFont("Arial", 15, true))
10031004
.setFocus(false)
10041005
.setColor(color(26, 26, 26))
10051006
.setColorBackground(color(255, 255, 255)) // text field bg color
@@ -1295,7 +1296,7 @@ class SessionDataBox {
12951296
.setPosition(x + 60, y + 32)
12961297
.setCaptionLabel("")
12971298
.setSize(187, 26)
1298-
.setFont(f2)
1299+
.setFont(createFont("Arial", 15, true))
12991300
.setFocus(false)
13001301
.setColor(color(26, 26, 26))
13011302
.setColorBackground(color(255, 255, 255)) // text field bg color
@@ -2097,7 +2098,7 @@ class GaleaBox {
20972098
.setPosition(x + w - padding*2 - 60*2, y + 16 + padding*2)
20982099
.setCaptionLabel("")
20992100
.setSize(120 + padding, 26)
2100-
.setFont(f2)
2101+
.setFont(createFont("Arial", 15, true))
21012102
.setFocus(false)
21022103
.setColor(color(26, 26, 26))
21032104
.setColorBackground(color(255, 255, 255)) // text field bg color
@@ -2296,7 +2297,7 @@ class BrainFlowStreamerBox {
22962297
.setPosition(x + padding * 3, y + HEADER_H + padding*2)
22972298
.setCaptionLabel("")
22982299
.setSize(120, OBJECT_H)
2299-
.setFont(f2)
2300+
.setFont(createFont("Arial", 15, true))
23002301
.setFocus(false)
23012302
.setColor(color(26, 26, 26))
23022303
.setColorBackground(color(255, 255, 255)) // text field bg color
@@ -2327,7 +2328,7 @@ class BrainFlowStreamerBox {
23272328
.setPosition(x + padding*5 + w/2, y + HEADER_H + padding*2)
23282329
.setCaptionLabel("")
23292330
.setSize(50, OBJECT_H)
2330-
.setFont(f2)
2331+
.setFont(createFont("Arial", 15, true))
23312332
.setFocus(false)
23322333
.setColor(color(26, 26, 26))
23332334
.setColorBackground(color(255, 255, 255)) // text field bg color
@@ -2527,7 +2528,7 @@ class StreamingBoardBox {
25272528
.setPosition(x + padding * 3, y + headerH + padding*2)
25282529
.setCaptionLabel("")
25292530
.setSize(w / 3, objectH)
2530-
.setFont(f2)
2531+
.setFont(createFont("Arial", 15, true))
25312532
.setFocus(false)
25322533
.setColor(color(26, 26, 26))
25332534
.setColorBackground(color(255, 255, 255)) // text field bg color
@@ -2544,7 +2545,7 @@ class StreamingBoardBox {
25442545
.setPosition(x + padding*5 + w/2, y + headerH + padding*2)
25452546
.setCaptionLabel("")
25462547
.setSize(w / 5 + padding, objectH)
2547-
.setFont(f2)
2548+
.setFont(createFont("Arial", 15, true))
25482549
.setFocus(false)
25492550
.setColor(color(26, 26, 26))
25502551
.setColorBackground(color(255, 255, 255)) // text field bg color

OpenBCI_GUI/FilterUI.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ class FilterUIPopup extends PApplet implements Runnable {
315315
private void createAllCp5Objects() {
316316
calculateXYForHeaderColumnsAndFooter();
317317

318-
createFilterSettingsSaveButton("saveFilterSettingsButton", "Save Settings", footerObjX[0], footerObjY, headerObjWidth, uiObjectHeight);
319-
createFilterSettingsLoadButton("loadFilterSettingsButton", "Load Settings", footerObjX[1], footerObjY, headerObjWidth, uiObjectHeight);
320-
createFilterSettingsDefaultButton("defaultFilterSettingsButton", "Reset Settings", footerObjX[2], footerObjY, headerObjWidth, uiObjectHeight);
318+
createFilterSettingsSaveButton("saveFilterSettingsButton", "Save", footerObjX[0], footerObjY, headerObjWidth, uiObjectHeight);
319+
createFilterSettingsLoadButton("loadFilterSettingsButton", "Load", footerObjX[1], footerObjY, headerObjWidth, uiObjectHeight);
320+
createFilterSettingsDefaultButton("defaultFilterSettingsButton", "Reset", footerObjX[2], footerObjY, headerObjWidth, uiObjectHeight);
321321

322322
createOnOffButtons();
323323
createTextfields();

OpenBCI_GUI/PopupMessage.pde

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ class PopupMessage extends PApplet implements Runnable {
7474
.setFont(p1)
7575
.toUpperCase(false)
7676
.setSize(20)
77-
.setText(buttonMessage);
77+
.setText(buttonMessage)
78+
.getStyle()
79+
.setMarginTop(-2);
7880
}
7981

8082
@Override

OpenBCI_GUI/SessionSettings.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class SessionSettings {
129129
String[] fftMaxFrqArray = {"20 Hz", "40 Hz", "60 Hz", "100 Hz", "120 Hz", "250 Hz", "500 Hz", "800 Hz"};
130130
String[] fftVertScaleArray = {"10 uV", "50 uV", "100 uV", "1000 uV"};
131131
String[] fftLogLinArray = {"Log", "Linear"}; //share this with spectrogram also
132-
String[] fftSmoothingArray = {"0.0", "0.5", "0.75", "0.9", "0.95", "0.98"};
132+
String[] fftSmoothingArray = {"0.0", "0.5", "0.75", "0.9", "0.95", "0.98", "0.99", "0.999"};
133133
String[] fftFilterArray = {"Filtered", "Unfilt."};
134134

135135
//Used to set text in dropdown menus when loading Accelerometer settings
@@ -159,7 +159,7 @@ class SessionSettings {
159159

160160
//Used to set text in dropdown menus when loading Spectrogram Setings
161161
String[] spectMaxFrqArray = {"20 Hz", "40 Hz", "60 Hz", "100 Hz", "120 Hz", "250 Hz"};
162-
String[] spectSampleRateArray = {"1 Hz", "5 hz", "10 Hz", "20 Hz", "40 Hz"};
162+
String[] spectSampleRateArray = {"30 Min.", "6 Min.", "3 Min.", "1.5 Min.", "1 Min."};
163163

164164
//Load Accel. dropdown variables
165165
int loadAccelVertScale;

OpenBCI_GUI/TopNav.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class TopNav {
9797
if (needToMakeSmoothingButton) {
9898
int pos_x = (int)filtersButton.getPosition()[0] + filtersButton.getWidth() + PAD_3;
9999
//Make smoothing button wider than most other topnav buttons to fit text comfortably
100-
createSmoothingButton(getSmoothingString(), pos_x, SUBNAV_BUT_Y, SUBNAV_BUT_W + 40, SUBNAV_BUT_H, h4, 14, SUBNAV_LIGHTBLUE, WHITE);
100+
createSmoothingButton(getSmoothingString(), pos_x, SUBNAV_BUT_Y, SUBNAV_BUT_W + 48, SUBNAV_BUT_H, h4, 14, SUBNAV_LIGHTBLUE, WHITE);
101101
}
102102

103103

OpenBCI_GUI/W_HeadPlot.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
///////////////////////////////////////////////////,
1313

1414

15-
float[] smoothFac = new float[]{0.0, 0.5, 0.75, 0.9, 0.95, 0.98}; //used by FFT & Headplot
15+
float[] smoothFac = new float[]{0.0, 0.5, 0.75, 0.9, 0.95, 0.98, 0.99, 0.999}; //used by FFT & Headplot
1616
int smoothFac_ind = 3; //initial index into the smoothFac array = 0.75 to start .. used by FFT & Head Plots
1717

1818
class W_HeadPlot extends Widget {

OpenBCI_GUI/W_Networking.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class W_Networking extends Widget {
496496
cp5_networking.addTextfield(name)
497497
.align(10,100,10,100) // Alignment
498498
.setSize(120,20) // Size of textfield
499-
.setFont(f2)
499+
.setFont(createFont("Arial", 15, true))
500500
.setFocus(false) // Deselects textfield
501501
.setColor(color(26,26,26))
502502
.setColorBackground(color(255,255,255)) // text field bg color

0 commit comments

Comments
 (0)