diff --git a/plugin-playground/src/main/kotlin/KondoKit/ReflectiveEditorView.kt b/plugin-playground/src/main/kotlin/KondoKit/ReflectiveEditorView.kt index e1b6324..4548444 100644 --- a/plugin-playground/src/main/kotlin/KondoKit/ReflectiveEditorView.kt +++ b/plugin-playground/src/main/kotlin/KondoKit/ReflectiveEditorView.kt @@ -139,7 +139,7 @@ object ReflectiveEditorView { val container = JPanel(BorderLayout()) container.background = VIEW_BACKGROUND_COLOR - container.border = BorderFactory.createEmptyBorder(10, 5, 10, 5) + //container.border = BorderFactory.createEmptyBorder(10, 5, 10, 5) container.add(scrollablePanel, BorderLayout.CENTER) return container @@ -149,7 +149,7 @@ object ReflectiveEditorView { val panel = JPanel(BorderLayout()) panel.background = WIDGET_COLOR panel.border = BorderFactory.createEmptyBorder(10, 10, 10, 10) - panel.maximumSize = Dimension(Int.MAX_VALUE, 60) + panel.maximumSize = Dimension(220, 60) // Remove fixed preferredSize to allow flexible width // panel.preferredSize = Dimension(220, 60) @@ -157,7 +157,7 @@ object ReflectiveEditorView { val packageName = plugin.javaClass.`package`.name val nameLabel = JLabel("$packageName v${pluginInfo.version}") nameLabel.foreground = secondaryColor - nameLabel.font = Font("RuneScape Small", Font.BOLD, 16) + nameLabel.font = Font("RuneScape Small", Font.PLAIN, 16) // Check if plugin has exposed attributes val exposedFields = plugin.javaClass.declaredFields.filter { field -> @@ -249,7 +249,7 @@ object ReflectiveEditorView { headerPanel.preferredSize = Dimension(Int.MAX_VALUE, 40) headerPanel.border = BorderFactory.createEmptyBorder(5, 10, 5, 10) - val backButton = JButton("◀ Back") + val backButton = JButton("Back") backButton.background = TITLE_BAR_COLOR backButton.foreground = secondaryColor backButton.font = Font("RuneScape Small", Font.PLAIN, 14) @@ -266,9 +266,9 @@ object ReflectiveEditorView { } val packageName = plugin.javaClass.`package`.name - val titleLabel = JLabel("$packageName Settings") + val titleLabel = JLabel("$packageName") titleLabel.foreground = secondaryColor - titleLabel.font = Font("RuneScape Small", Font.BOLD, 16) + titleLabel.font = Font("RuneScape Small", Font.PLAIN, 16) titleLabel.horizontalAlignment = SwingConstants.CENTER headerPanel.add(backButton, BorderLayout.WEST)