mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
darcula: html viewer should have no visible background if background=null specified at creation time
This commit is contained in:
@@ -435,7 +435,15 @@ public class SwingHelper {
|
||||
textPane.setFont(font != null ? font : UIUtil.getLabelFont());
|
||||
textPane.setContentType(UIUtil.HTML_MIME);
|
||||
textPane.setEditable(false);
|
||||
textPane.setBackground(background != null ? background : UIUtil.getLabelBackground());
|
||||
if (background != null) {
|
||||
textPane.setBackground(background); // e.g. UIUtil.getOptionPaneBackground()
|
||||
}
|
||||
else {
|
||||
textPane.setOpaque(false);
|
||||
if (UIUtil.isUnderNimbusLookAndFeel()) {
|
||||
textPane.setBackground(UIUtil.TRANSPARENT_COLOR);
|
||||
}
|
||||
}
|
||||
textPane.setForeground(foreground != null ? foreground : UIUtil.getLabelForeground());
|
||||
return textPane;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user