make it readable

This commit is contained in:
Konstantin Bulenkov
2013-05-04 17:23:51 +02:00
parent 1de50a627d
commit 3aa0316c2a
@@ -31,8 +31,11 @@ import java.awt.*;
public class DarculaTextBorder implements Border, UIResource {
@Override
public Insets getBorderInsets(Component c) {
int off = DarculaTextFieldUI.isSearchField(c) ? 16 : 0;
return new InsetsUIResource(5, 7 + off + (off == 0 ? 0 : 3), 5, 7 + off);
if (DarculaTextFieldUI.isSearchField(c)) {
return new InsetsUIResource(5, 7 + 16 + 3, 5, 7 + 16);
} else {
return new InsetsUIResource(5, 7, 5, 7);
}
}
@Override