mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
1px offset for Darcula and IntelliJ lafs
This commit is contained in:
@@ -39,6 +39,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
@@ -71,6 +72,9 @@ public class ComponentWithBrowseButton<Comp extends JComponent> extends JPanel i
|
||||
if (ApplicationManager.getApplication() != null) { // avoid crash at design time
|
||||
new MyDoClickAction(myBrowseButton).registerShortcut(myComponent);
|
||||
}
|
||||
if (UIUtil.isUnderIntelliJLaF() || UIUtil.isUnderDarcula()) {
|
||||
setBorder(new EmptyBorder(0, 1, 0, 1));
|
||||
}
|
||||
}
|
||||
|
||||
public final Comp getChildComponent() {
|
||||
|
||||
Reference in New Issue
Block a user