Wizard: fix layout

This commit is contained in:
Ilya Kirillov
2020-03-16 15:31:53 +03:00
parent baba12a671
commit f640477464
2 changed files with 6 additions and 8 deletions
@@ -1,5 +1,6 @@
package org.jetbrains.kotlin.tools.projectWizard.wizard.ui.firstStep
import com.intellij.ui.JBColor
import com.intellij.util.ui.JBUI
import com.intellij.util.ui.UIUtil
import org.jetbrains.kotlin.tools.projectWizard.core.Context
@@ -31,15 +32,12 @@ class ProjectTemplateSettingComponent(
append(value.title)
},
onValueSelected = { value = it }
).bordered(needTopEmptyBorder = false, needInnerEmptyBorder = false, needBottomEmptyBorder = false)
).addBorder(JBUI.Borders.customLine(JBColor.border()))
override val component: JComponent = panel {
add(list, BorderLayout.CENTER)
add(
templateDescriptionComponent.component.addBorder(JBUI.Borders.emptyTop(5)),
BorderLayout.SOUTH
)
override val component: JComponent = borderPanel {
addToCenter(borderPanel { addToCenter(list) }.addBorder(JBUI.Borders.empty(0,/*left*/ 3, 0, /*right*/ 3)))
addToBottom(templateDescriptionComponent.component.addBorder(JBUI.Borders.empty(/*top*/5,/*left*/ 3, 0, 0)))
}
private fun applySelectedTemplate() = modify {
@@ -96,7 +96,7 @@ class ModulesEditorTree(
append(setting.text)
setting.greyText?.let { greyText ->
append(" ")
append("($greyText)", SimpleTextAttributes.GRAYED_ATTRIBUTES)
append(greyText, SimpleTextAttributes.GRAYED_ATTRIBUTES)
}
}
})