Wizard: fix layout
This commit is contained in:
+5
-7
@@ -1,5 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.tools.projectWizard.wizard.ui.firstStep
|
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.JBUI
|
||||||
import com.intellij.util.ui.UIUtil
|
import com.intellij.util.ui.UIUtil
|
||||||
import org.jetbrains.kotlin.tools.projectWizard.core.Context
|
import org.jetbrains.kotlin.tools.projectWizard.core.Context
|
||||||
@@ -31,15 +32,12 @@ class ProjectTemplateSettingComponent(
|
|||||||
append(value.title)
|
append(value.title)
|
||||||
},
|
},
|
||||||
onValueSelected = { value = it }
|
onValueSelected = { value = it }
|
||||||
).bordered(needTopEmptyBorder = false, needInnerEmptyBorder = false, needBottomEmptyBorder = false)
|
).addBorder(JBUI.Borders.customLine(JBColor.border()))
|
||||||
|
|
||||||
|
|
||||||
override val component: JComponent = panel {
|
override val component: JComponent = borderPanel {
|
||||||
add(list, BorderLayout.CENTER)
|
addToCenter(borderPanel { addToCenter(list) }.addBorder(JBUI.Borders.empty(0,/*left*/ 3, 0, /*right*/ 3)))
|
||||||
add(
|
addToBottom(templateDescriptionComponent.component.addBorder(JBUI.Borders.empty(/*top*/5,/*left*/ 3, 0, 0)))
|
||||||
templateDescriptionComponent.component.addBorder(JBUI.Borders.emptyTop(5)),
|
|
||||||
BorderLayout.SOUTH
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun applySelectedTemplate() = modify {
|
private fun applySelectedTemplate() = modify {
|
||||||
|
|||||||
+1
-1
@@ -96,7 +96,7 @@ class ModulesEditorTree(
|
|||||||
append(setting.text)
|
append(setting.text)
|
||||||
setting.greyText?.let { greyText ->
|
setting.greyText?.let { greyText ->
|
||||||
append(" ")
|
append(" ")
|
||||||
append("($greyText)", SimpleTextAttributes.GRAYED_ATTRIBUTES)
|
append(greyText, SimpleTextAttributes.GRAYED_ATTRIBUTES)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user