mirror of
https://github.com/ProjectSWGCore/launcher.git
synced 2026-01-16 23:04:25 -05:00
Added some padding to the UI
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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<SettingsGeneralView>().root)
|
||||
separator()
|
||||
@@ -43,5 +47,4 @@ class SettingsView : View() {
|
||||
children.add(find<SettingsForwarderView>().root)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user