diff --git a/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java b/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java index 5956fb74af7d..579a42529359 100644 --- a/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java +++ b/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java @@ -51,6 +51,7 @@ public class WideSelectionTreeUI extends BasicTreeUI { private boolean myOldRepaintAllRowValue; private boolean invertLineColor; private boolean myForceDontPaintLines = false; + private boolean mySkinny = false; @SuppressWarnings("unchecked") public WideSelectionTreeUI() { @@ -74,8 +75,16 @@ public class WideSelectionTreeUI extends BasicTreeUI { return isSkinny() ? 8 : super.getRightChildIndent(); } - private static boolean isSkinny() { - return UIUtil.isUnderDarcula() || UIUtil.isUnderIntelliJLaF() || UIUtil.isUnderAquaLookAndFeel(); + public boolean isSkinny() { + return mySkinny; + } + + /** + * Setting to true make tree to reduce row offset + * @param skinny true to reduce row offset + */ + public void setSkinny(boolean skinny) { + mySkinny = skinny; } private final MouseListener mySelectionListener = new MouseAdapter() {