Skip to content

Commit

Permalink
fixed display if using a dark ui, prepared next release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Rockel committed Aug 21, 2020
1 parent 28dbfb0 commit 297bafa
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tda/src/java/com/pironet/tda/HelpOverviewDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import com.pironet.tda.utils.Browser;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Image;
Expand Down Expand Up @@ -74,6 +75,7 @@ private void initPanel() {
try {
URL tutURL = HelpOverviewDialog.class.getResource(getFile());
htmlView = new JEditorPane(tutURL);
htmlView.setForeground(Color.BLACK);
} catch (MalformedURLException ex) {
ex.printStackTrace();
} catch (IOException ex) {
Expand Down
3 changes: 3 additions & 0 deletions tda/src/java/com/pironet/tda/TDA.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ public void hyperlinkUpdate(HyperlinkEvent evt) {
splitPane.setDividerSize(DIVIDER_SIZE);
splitPane.setContinuousLayout(true);

splitPane.setForeground(Color.red);

if(this.runningAsVisualVMPlugin) {
setOpaque(true);
setBackground(Color.WHITE);
Expand Down Expand Up @@ -1226,6 +1228,7 @@ private void displayContent(String text) {
htmlPane.setContentType("text/html");
htmlPane.setText(text);
htmlPane.setCaretPosition(0);
htmlPane.setForeground(Color.BLACK);
} else {
htmlPane.setText("");
}
Expand Down
2 changes: 2 additions & 0 deletions tda/src/java/com/pironet/tda/doc/README
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Note: This is the 2.4 release of the software, for an usage overview see Help/Ov
Changes from 2.3.4 are:
* Compiled using JDK 1.8 so Source Level now is 1.8
* fixed #20: updated tda visual vm plugin to Visual VM 2.0
* fixed #21: fixed parsing of jdk 11 thread dumps.
* fixed colors for dark UIs
* tda.sh can now be called from everywhere

Changes from 2.3.3 are:
Expand Down
Binary file modified tda/src/java/com/pironet/tda/icons/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tda/src/java/com/pironet/tda/icons/tda-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions tda/src/java/com/pironet/tda/utils/ColoredTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ public TableCellRenderer getCellRenderer(int row, int column) {
if (whiteRenderer == null) {
whiteRenderer = new DefaultTableCellRenderer();
whiteRenderer.setBackground(Color.WHITE);
whiteRenderer.setForeground(Color.BLACK);
}

if (grayRenderer == null) {
grayRenderer = new DefaultTableCellRenderer();
grayRenderer.setBackground(new Color(240, 240, 240));
grayRenderer.setForeground(Color.BLACK);
}

if ((row % 2) == 0) {
Expand Down
Binary file modified tda/src/none/resources/splash.xcf
Binary file not shown.
Binary file modified tda/src/none/resources/tda-logo.xcf
Binary file not shown.

0 comments on commit 297bafa

Please sign in to comment.