Skip to content

Commit 74e0457

Browse files
committed
Updates for Nimbus LAF
1 parent 426ebd1 commit 74e0457

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

app/src/processing/app/EditorConsole.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,13 @@ protected void updateMode() {
212212
StyleConstants.setBold(errStyle, font.isBold());
213213
StyleConstants.setItalic(errStyle, font.isItalic());
214214

215-
consoleTextPane.setBackground(bgColor);
215+
if (UIManager.getLookAndFeel().getID().equals("Nimbus")) {
216+
getViewport().setBackground(bgColor);
217+
consoleTextPane.setOpaque(false);
218+
consoleTextPane.setBackground(new Color(0, 0, 0, 0));
219+
} else {
220+
consoleTextPane.setBackground(bgColor);
221+
}
216222

217223
// calculate height of a line of text in pixels
218224
// and size window accordingly

app/src/processing/app/contrib/ContributionPanel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ private void addPaneComponents() {
185185
descriptionBlock.setContentType("text/html");
186186
setTextStyle(descriptionBlock);
187187
descriptionBlock.setOpaque(false);
188+
if (UIManager.getLookAndFeel().getID().equals("Nimbus")) {
189+
descriptionBlock.setBackground(new Color(0, 0, 0, 0));
190+
}
188191
// stripTextSelectionListeners(descriptionBlock);
189192

190193
descriptionBlock.setBorder(new EmptyBorder(4, 7, 7, 7));

0 commit comments

Comments
 (0)