Browse Source

tweaked default insets for ToolTip.

pull/15/head
weisj 5 years ago
parent
commit
d394881aea
  1. 2
      src/main/java/com/weis/darklaf/ui/tabframe/DarkPanelPopupUI.java
  2. 4
      src/main/java/com/weis/darklaf/ui/tooltip/DarkTooltipBorder.java

2
src/main/java/com/weis/darklaf/ui/tabframe/DarkPanelPopupUI.java

@ -377,7 +377,7 @@ public class DarkPanelPopupUI extends DarkPanelUI implements PropertyChangeListe
setMargin(new InsetsUIResource(2, 2, 2, 2));
setFocus(false);
setOpaque(false);
context.setToolTipInsets(new Insets(5, 5, 5, 5));
context.setToolTipInsets(new Insets(2, 5, 2, 5));
}
public void setFocus(final boolean focus) {

4
src/main/java/com/weis/darklaf/ui/tooltip/DarkTooltipBorder.java

@ -109,9 +109,9 @@ public class DarkTooltipBorder implements Border {
ins.top = Math.max(bi.top, si.top);
var uIns = getUserInsets(c);
ins.left += 5 + uIns.left;
ins.top += 2 + uIns.top;
ins.top += 5 + uIns.top;
ins.right += 5 + uIns.right;
ins.bottom += 2 + uIns.bottom;
ins.bottom += 5 + uIns.bottom;
return ins;
}

Loading…
Cancel
Save