Skip to content

Commit

Permalink
More clear status indication in the SQL console.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed Dec 9, 2023
1 parent 8d92585 commit 29d4cc9
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2429,9 +2429,9 @@ public void actionPerformed(ActionEvent e) {
if (running) {
++time;
Color startColor = runningStatusLabelColor;
double x = Math.sin(2 * Math.PI * time / 50.0);
double f = Math.pow(Math.abs(x), 6);
Color c = new Color(startColor.getRed(), mid(f, startColor.getGreen(), 245), startColor.getBlue());
double x = Math.sin(2 * Math.PI * time / 15.0);
double f = (Math.pow(Math.abs(x), 0.5) * Math.signum(x) + 1) / 2;
Color c = new Color(mid(f, startColor.getRed(), 255), mid(f, startColor.getGreen(), 0), startColor.getBlue());
statusLabel.setForeground(c);
} else {
timer.stop();
Expand Down Expand Up @@ -2459,10 +2459,11 @@ private String getText() {
}
String text = "<html>";
if (running) {
text += "Running... ";
String runText = "Running... ";
if (numStatements <= 1 && numRowsRead == 0 && numRowsUpdated == 0) {
return text + "</html>";
return text + "<b>" + runText + "</b></html>";
}
text += runText;
}
if (successState != null) {
if (numStatements + successState.failed.size() > 1) {
Expand Down

0 comments on commit 29d4cc9

Please sign in to comment.