mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user