This commit is contained in:
downthecrop 2025-08-13 13:55:25 -07:00
parent 2cee659582
commit 214c5a7b2e

View file

@ -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)