From dcae16deae3f25708853b928ae5cbcd45a21f548 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Tue, 5 Jul 2022 19:32:11 -0500 Subject: [PATCH] Added some padding to the UI --- .../com/projectswg/launcher/resources/gui/NavigationView.kt | 4 ++-- .../com/projectswg/launcher/resources/gui/ServerListView.kt | 4 +++- .../com/projectswg/launcher/resources/gui/SettingsView.kt | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/projectswg/launcher/resources/gui/NavigationView.kt b/src/main/java/com/projectswg/launcher/resources/gui/NavigationView.kt index fcd7058..3f24410 100644 --- a/src/main/java/com/projectswg/launcher/resources/gui/NavigationView.kt +++ b/src/main/java/com/projectswg/launcher/resources/gui/NavigationView.kt @@ -34,8 +34,8 @@ class NavigationView : View("ProjectSWG Launcher") { addClass(Style.background) tabpane { - prefWidth = 825.0 - prefHeight = 400.0 + prefWidth = 900.0 + prefHeight = 450.0 vgrow = Priority.ALWAYS side = Side.LEFT diff --git a/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt b/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt index a3615ab..669b8fd 100644 --- a/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt +++ b/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt @@ -36,6 +36,7 @@ import javafx.beans.property.ReadOnlyBooleanWrapper import javafx.beans.property.ReadOnlyDoubleWrapper import javafx.beans.property.ReadOnlyObjectWrapper import javafx.beans.property.ReadOnlyStringWrapper +import javafx.geometry.Insets import javafx.geometry.Pos import javafx.scene.layout.Priority import javafx.scene.paint.Color @@ -55,6 +56,7 @@ class ServerListView : View() { addClass(Style.serverList) hbox { + padding = Insets(10.0) isFillWidth = true vbox leftBox@ { @@ -76,7 +78,7 @@ class ServerListView : View() { this += feedList.root } region { - prefWidth = 5.0 + prefWidth = 25.0 } vbox rightBox@ { prefWidthProperty().bind(this@hbox.widthProperty().subtract(5).divide(2)) diff --git a/src/main/java/com/projectswg/launcher/resources/gui/SettingsView.kt b/src/main/java/com/projectswg/launcher/resources/gui/SettingsView.kt index 5e14740..759ca61 100644 --- a/src/main/java/com/projectswg/launcher/resources/gui/SettingsView.kt +++ b/src/main/java/com/projectswg/launcher/resources/gui/SettingsView.kt @@ -25,14 +25,18 @@ import com.projectswg.launcher.resources.gui.settings.SettingsGeneralView import com.projectswg.launcher.resources.gui.settings.SettingsLoginView import com.projectswg.launcher.resources.gui.settings.SettingsUpdateView import com.projectswg.launcher.resources.gui.style.Style +import javafx.geometry.Insets import tornadofx.* class SettingsView : View() { override val root = scrollpane { isFitToWidth = true + isFitToHeight = true + vbox { addClass(Style.background) + padding = Insets(10.0) children.add(find().root) separator() @@ -43,5 +47,4 @@ class SettingsView : View() { children.add(find().root) } } - }