mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IdeBorderFactory. Insets around plain border made larger
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user