diff --git a/src/main/java/com/github/lppedd/cc/configuration/CCMainConfigurableGui.java b/src/main/java/com/github/lppedd/cc/configuration/CCMainConfigurableGui.java index 3008eacf..08820234 100644 --- a/src/main/java/com/github/lppedd/cc/configuration/CCMainConfigurableGui.java +++ b/src/main/java/com/github/lppedd/cc/configuration/CCMainConfigurableGui.java @@ -120,6 +120,7 @@ private void finishUpComponents(final Disposable disposable) { ); final GridConstraints gc = new GridConstraints(); + gc.setIndent(1); gc.setFill(FILL_BOTH); gc.setHSizePolicy(SIZEPOLICY_CAN_SHRINK | SIZEPOLICY_CAN_GROW | SIZEPOLICY_WANT_GROW); defaultsPanel.add(new DefaultsFileExportHolder().getComponent(), gc); @@ -129,6 +130,7 @@ private void finishUpComponents(final Disposable disposable) { defaultsPanel.add(defaultsFilePickerHolder.getComponent(), gc); gc.setRow(2); + gc.setIndent(0); gc.setVSizePolicy(SIZEPOLICY_CAN_SHRINK | SIZEPOLICY_CAN_GROW | SIZEPOLICY_WANT_GROW); defaultsPanel.add(defaultsListsHolder.getComponent(), gc); } diff --git a/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt b/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt index 5016dc66..e8a0b2d4 100644 --- a/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt +++ b/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt @@ -25,7 +25,7 @@ import javax.swing.JPanel internal class DefaultsFileExportHolder : ComponentHolder, LinkListener { private val exportAction = ActionLinkLabel(CCBundle["cc.config.defaults.exportToPath"], this) private val exportInfo = JBLabel() - private val panel = JPanel(GridLayoutManager(1, 2, JBUI.insetsLeft(10), 20, 0)).apply { + private val panel = JPanel(GridLayoutManager(1, 2, JBUI.insets(0, 1, 6, 0), 20, 0)).apply { val gc = GridConstraints() gc.fill = GridConstraints.FILL_HORIZONTAL gc.hSizePolicy = GridConstraints.SIZEPOLICY_FIXED diff --git a/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFilePickerHolder.kt b/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFilePickerHolder.kt index d7e62fd2..d5b104e3 100644 --- a/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFilePickerHolder.kt +++ b/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFilePickerHolder.kt @@ -31,7 +31,7 @@ import javax.swing.event.DocumentEvent * @author Edoardo Luppi */ internal class DefaultsFilePickerHolder(private val disposable: Disposable) : ComponentHolder { - private val panel = JPanel(GridLayoutManager(2, 1, JBUI.insetsLeft(10), 0, 10)) + private val panel = JPanel(GridLayoutManager(2, 1, JBUI.emptyInsets(), 0, 10)) private val isCustomFile = JBCheckBox(CCBundle["cc.config.defaults.customDefaults"]) private val customFile = TextFieldWithBrowseButton() private var isValid = true