Skip to content

Commit 00655ab

Browse files
committed
Adjust about screen size to fit logo
Also adjust portbox border so the referesh button fits even with long port names
1 parent 53293b2 commit 00655ab

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/kotlin/be/ugent/topl/mio/ui/AboutScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import javax.swing.*
1616
open class AboutScreen(protected val config: DebuggerConfig) : JFrame() {
1717
init {
1818
configureTheme()
19-
setSize(400, 300)
20-
minimumSize = Dimension(400, 300)
19+
setSize(450, 350)
20+
minimumSize = Dimension(450, 350)
2121
val mainPanel = JPanel()
2222
mainPanel.setLayout(BoxLayout(mainPanel, BoxLayout.Y_AXIS))
2323
mainPanel.border = BorderFactory.createEmptyBorder(20, 20, 20, 20)

src/main/kotlin/be/ugent/topl/mio/ui/StartScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ open class StartScreen(config: DebuggerConfig) : AboutScreen(config) {
3434
}
3535
}
3636
val portBox = Box.createHorizontalBox()
37+
portBox.border = BorderFactory.createEmptyBorder(10, 20, 0, 20)
3738
portBox.add(portComboBox)
3839
portBox.add(JButton(FlatSVGIcon(javaClass.getResource("/refresh.svg"))).apply {
3940
addActionListener {

0 commit comments

Comments
 (0)