IdeBorderFactory. Insets around plain border made larger

This commit is contained in:
Evgeny Zakrevsky
2011-08-17 21:35:55 +04:00
parent e6655fcd92
commit 58ca60481d
@@ -60,10 +60,16 @@ public class IdeBorderFactory {
public static IdeaTitledBorder createTitledBorder(String title, boolean hasBoldFont, boolean hasIndent, boolean hasSmallFont) {
Font font = UIUtil.getBorderFont(hasSmallFont ? UIUtil.FontSize.SMALL : UIUtil.FontSize.NORMAL, hasBoldFont);
int indent = hasIndent ? (hasBoldFont ? 18 : 15) : 0;
Insets insets = hasBoldFont ? new Insets(5, 0, 10, 0) : new Insets(3, 0, 6, 0);
Insets insets = new Insets(5, 0, 10, 0);
return new IdeaTitledBorder(title, font, UIUtil.getBorderColor(), indent, 1, insets);
}
public static IdeaTitledBorder createTitledBorder(String title, boolean hasBoldFont, boolean hasIndent, boolean hasSmallFont, Insets insets) {
Font font = UIUtil.getBorderFont(hasSmallFont ? UIUtil.FontSize.SMALL : UIUtil.FontSize.NORMAL, hasBoldFont);
int indent = hasIndent ? (hasBoldFont ? 18 : 15) : 0;
return new IdeaTitledBorder(title, font, UIUtil.getBorderColor(), indent, 1, insets);
}
@Deprecated
// Don't remove, used in TeamCity plugin.
public static TitledBorder createTitledHeaderBorder(String title) {