File tree Expand file tree Collapse file tree
src/main/kotlin/be/ugent/topl/mio/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import javax.swing.*
1515
1616open class AboutScreen (protected val config : DebuggerConfig ) : JFrame() {
1717 init {
18- configureTheme()
19- setSize(450 , 350 )
18+ val fullWindowContents = configureTheme()
19+ setSize(450 , 350 + if ( ! fullWindowContents) 20 else 0 )
2020 minimumSize = Dimension (450 , 350 )
2121 val mainPanel = JPanel ()
2222 mainPanel.setLayout(BoxLayout (mainPanel, BoxLayout .Y_AXIS ))
@@ -44,7 +44,7 @@ open class AboutScreen(protected val config: DebuggerConfig) : JFrame() {
4444 })
4545 }
4646
47- private fun configureTheme () {
47+ private fun configureTheme (): Boolean {
4848 if (SystemInfo .isMacFullWindowContentSupported) {
4949 rootPane.putClientProperty(" apple.awt.transparentTitleBar" , true )
5050 rootPane.putClientProperty(" apple.awt.fullWindowContent" , true )
@@ -72,5 +72,6 @@ open class AboutScreen(protected val config: DebuggerConfig) : JFrame() {
7272 }
7373 else FlatDarkLaf .setup()
7474 }
75+ return SystemInfo .isMacFullWindowContentSupported
7576 }
7677}
You can’t perform that action at this time.
0 commit comments