Skip to content

Better support for netbean's dark themes #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
<organization>cismet GmbH</organization>
</developer>
</developers>
<contributors>
<contributor>
<name>Arnaud Fonce</name>
<email>arnaud.fonce@r-w-x.net</email>
<url>http://blog.r-w-x.net</url>
<organization>Room Work eXperience</organization>
<roles>
<role>developer</role>
</roles>
<timezone>France/Paris</timezone>
</contributor>
</contributors>

<prerequisites>
<maven>3</maven>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public Component getTableCellRendererComponent(final JTable table,
color = Colors.blend(2, color, 1, Color.white);
setBackground(color);
setFont(table.getFont());
setForeground(Color.BLACK);
setValue(" " + severity.toString());

return this;
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/traxel/lumbermill/event/TableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,6 @@ public Component prepareRenderer(final TableCellRenderer renderer, final int row
} catch (final Exception e) {
// LOG.error("error while preparing renderer", e);
}
if (!((renderer instanceof SeverityCellView)
|| this.getSelectionModel().isSelectedIndex(rowIndex))) {
if (event instanceof XMLEvent) {
jc.setBackground(new Color(236, 233, 216));
} else {
jc.setBackground(Color.white);
}
}
} else {
if (LOG.isDebugEnabled()) {
LOG.debug("renderer component: " + c);
Expand Down
1 change: 0 additions & 1 deletion src/main/java/de/cismet/beanmill/BeanMillPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ private void change() {
}
try {
regexFilter.setRegex(txtRegExp.getText());
txtRegExp.setForeground(Color.BLACK);
String regex = ".*" + txtRegExp.getText() + ".*";
regex = regex.replaceAll("(\\.\\*)+", ".*");
txtRegExp.setToolTipText("<html>" + "nice RegExp ;-)<br>"
Expand Down