Skip to content

Commit 822a697

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 e5c5442 commit 822a697

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import javax.swing.*
1717
open class AboutScreen(protected val config: DebuggerConfig) : JFrame() {
1818
init {
1919
configureTheme()
20-
setSize(400, 300)
21-
minimumSize = Dimension(400, 300)
20+
setSize(450, 350)
21+
minimumSize = Dimension(450, 350)
2222
val mainPanel = JPanel()
2323
mainPanel.setLayout(BoxLayout(mainPanel, BoxLayout.Y_AXIS))
2424
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)