mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-10 10:20:44 -07:00
Styling
This commit is contained in:
parent
2cee659582
commit
214c5a7b2e
1 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue