begin some spacing adjustments

This commit is contained in:
downthecrop 2025-10-14 00:03:52 -07:00
parent 8ac1bad46f
commit 215263a129

View file

@ -79,7 +79,7 @@ object HiscoresView : View {
}
fun createHiscoreSearchView() {
val hiscorePanel = BaseView(VIEW_NAME, Constants.HISCORE_PANEL_DIMENSION.width).apply {
val hiscorePanel = BaseView(VIEW_NAME, addDefaultSpacing = false).apply {
background = Constants.COLOR_BACKGROUND_MEDIUM
setViewSize(Constants.HISCORE_PANEL_DIMENSION.height)
}
@ -90,7 +90,7 @@ object HiscoresView : View {
searchPlayerForHiscores(username, hiscorePanel)
},
"Search player...",
230,
242,
30,
VIEW_NAME
)
@ -111,9 +111,9 @@ object HiscoresView : View {
add(searchFieldWrapper)
}
hiscorePanel.add(Box.createVerticalStrut(10))
hiscorePanel.add(Box.createVerticalStrut(5))
hiscorePanel.add(searchPanel)
hiscorePanel.add(Box.createVerticalStrut(10))
hiscorePanel.add(Box.createVerticalStrut(5))
val playerNamePanel = JPanel().apply {
layout = GridBagLayout() // This will center the JLabel both vertically and horizontally
@ -125,7 +125,7 @@ object HiscoresView : View {
}
hiscorePanel.add(playerNamePanel)
hiscorePanel.add(Box.createVerticalStrut(10))
hiscorePanel.add(Box.createVerticalStrut(5))
val skillsPanel = JPanel(FlowLayout(FlowLayout.CENTER, 0, 0)).apply {
background = Constants.COLOR_BACKGROUND_MEDIUM