Skip to content

Commit

Permalink
font size tweak, make player selectors grow
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Apr 17, 2024
1 parent 66a23e6 commit b7a05c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/dartzee/bean/AbstractPlayerSelector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractPlayerSelector<S : ScrollTable> :
protected val lblSelected = JLabel("Selected")

protected fun render() {
layout = MigLayout("al center center", "[452px][100px][452px]", "[20px][407px]")
layout = MigLayout("al center center", "[grow][100px][grow]", "[20px][grow]")

tablePlayersToSelectFrom.name = "TableUnselected"

Expand All @@ -48,7 +48,7 @@ abstract class AbstractPlayerSelector<S : ScrollTable> :

val panelMovementOptions = JPanel()
add(lblAvailable, "cell 0 0, alignx center")
add(tablePlayersToSelectFrom, "cell 0 1,alignx left,growy")
add(tablePlayersToSelectFrom, "cell 0 1,alignx left,grow")
panelMovementOptions.minimumSize = Dimension(50, 10)
add(panelMovementOptions, "cell 1 1,grow")
panelMovementOptions.layout = MigLayout("al center center, wrap, gapy 20")
Expand All @@ -64,7 +64,7 @@ abstract class AbstractPlayerSelector<S : ScrollTable> :
panelMovementOptions.add(btnUnselect, "cell 0 2,alignx left,aligny top")

add(lblSelected, "cell 2 0, alignx center")
add(tablePlayersSelected, "cell 2 1,alignx left,growy")
add(tablePlayersSelected, "cell 2 1,alignx left,grow")

tablePlayersSelected.addDoubleClickListener(this)
tablePlayersToSelectFrom.addDoubleClickListener(this)
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/dartzee/bean/GameSetupPlayerSelector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GameSetupPlayerSelector : AbstractPlayerSelector<ScrollTableOrdered>() {
super.render()

if (InjectedThings.partyMode) {
val font = ResourceCache.BASE_FONT.deriveFont(Font.PLAIN, 24f)
val font = ResourceCache.BASE_FONT.deriveFont(Font.PLAIN, 20f)
tablePlayersToSelectFrom.setTableFont(font)
tablePlayersSelected.setTableFont(font)
}
Expand Down

0 comments on commit b7a05c0

Please sign in to comment.