mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-15 02:50:23 -07:00
begin some spacing adjustments
This commit is contained in:
parent
8ac1bad46f
commit
215263a129
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue