IDEA-25000 Grey background around checkboxes and icons in nimbus L&F (from sun jdk 1.6.0_16) under linux

This commit is contained in:
Kirill Kalishev
2010-07-16 16:10:31 +04:00
parent a629fb5f14
commit eeb2555ee8
3 changed files with 14 additions and 4 deletions
@@ -58,7 +58,16 @@ public class NonOpaquePanel extends Wrapper {
super.setOpaque(isOpaque);
if (!isOpaque && UIUtil.isUnderNimbusLookAndFeel()) {
setBackground(TRANSPARENT);
if (UIUtil.isUnderNimbusLookAndFeel()) {
setBackground(TRANSPARENT);
}
}
}
public static void setTransparent(JComponent c) {
c.setOpaque(false);
if (UIUtil.isUnderNimbusLookAndFeel()) {
c.setBackground(TRANSPARENT);
}
}
}
@@ -711,7 +711,7 @@ public class PopupFactoryImpl extends JBPopupFactory {
final JLabel label = new JLabel(text.getText());
final Dimension size = label.getPreferredSize();
text.setEditable(false);
text.setOpaque(false);
NonOpaquePanel.setTransparent(text);
text.setBorder(null);
text.setPreferredSize(size);
@@ -35,6 +35,7 @@ import com.intellij.openapi.vcs.changes.ChangesUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.*;
import com.intellij.ui.components.JBList;
import com.intellij.ui.components.panels.NonOpaquePanel;
import com.intellij.ui.treeStructure.Tree;
import com.intellij.ui.treeStructure.actions.CollapseAllAction;
import com.intellij.ui.treeStructure.actions.ExpandAllAction;
@@ -556,8 +557,8 @@ public abstract class ChangesTreeList<T> extends JPanel {
myCheckBox = new JCheckBox();
myTextRenderer = new ChangesBrowserNodeRenderer(myProject, false, myHighlightProblems);
myCheckBox.setBackground(null);
setBackground(null);
NonOpaquePanel.setTransparent(this);
NonOpaquePanel.setTransparent(myCheckBox);
if (myShowCheckboxes) {
add(myCheckBox, BorderLayout.WEST);