mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UI fixes for GTK+ look and feel in changes view
This commit is contained in:
@@ -91,7 +91,7 @@ public abstract class ColoredTreeCellRenderer extends SimpleColoredComponent imp
|
||||
setIcon(null);
|
||||
}
|
||||
|
||||
if (UIUtil.isUnderNimbusLookAndFeel() && selected && hasFocus) {
|
||||
if (UIUtil.isUnderGTKLookAndFeel() || UIUtil.isUnderNimbusLookAndFeel() && selected && hasFocus) {
|
||||
super.setOpaque(false); // avoid erasing Nimbus focus frame
|
||||
super.setIconOpaque(false);
|
||||
}
|
||||
|
||||
@@ -577,6 +577,11 @@ public class UIUtil {
|
||||
return UIManager.getLookAndFeel().getName().contains("Mac OS X");
|
||||
}
|
||||
|
||||
@SuppressWarnings({"HardCodedStringLiteral"})
|
||||
public static boolean isUnderGTKLookAndFeel() {
|
||||
return UIManager.getLookAndFeel().getName().contains("GTK");
|
||||
}
|
||||
|
||||
public static boolean isFullRowSelectionLAF() {
|
||||
return isUnderNimbusLookAndFeel() || isUnderQuaquaLookAndFeel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user