parent
4a213afdf5
commit
6b6ef67122
@ -6,7 +6,7 @@ import org.hso.texturesyncclient.view.startupView.StartupView
|
|||||||
import org.hso.texturesyncclient.view.startupView.StartupViewController
|
import org.hso.texturesyncclient.view.startupView.StartupViewController
|
||||||
import tornadofx.App
|
import tornadofx.App
|
||||||
|
|
||||||
class Main : App(StartupView::class) {
|
class Main: App(StartupView::class){
|
||||||
|
|
||||||
//start first controller
|
//start first controller
|
||||||
private val svc = StartupViewController()
|
private val svc = StartupViewController()
|
||||||
@ -15,6 +15,7 @@ class Main : App(StartupView::class) {
|
|||||||
|
|
||||||
stage.minWidth = 1000.00
|
stage.minWidth = 1000.00
|
||||||
stage.minHeight = 500.00
|
stage.minHeight = 500.00
|
||||||
|
stage.isResizable = false
|
||||||
stage.icons.add(Image("icons/TextureSync_Icon_256x256.jpeg"))
|
stage.icons.add(Image("icons/TextureSync_Icon_256x256.jpeg"))
|
||||||
stage.setOnCloseRequest { System.exit(0) }
|
stage.setOnCloseRequest { System.exit(0) }
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import javafx.scene.layout.CornerRadii
|
|||||||
import javafx.scene.paint.Paint
|
import javafx.scene.paint.Paint
|
||||||
import tornadofx.*
|
import tornadofx.*
|
||||||
|
|
||||||
class DetailView : View() {
|
class DetailView: View() {
|
||||||
|
|
||||||
val preview = Preview3D()
|
val preview = Preview3D()
|
||||||
val metaLabel = Label("Auflösung: 8MP\nName: Texture.png\nAndere: was anderes\nEinfügedatum: 31.02.2019")
|
val metaLabel = Label("Auflösung: 8MP\nName: Texture.png\nAndere: was anderes\nEinfügedatum: 31.02.2019")
|
||||||
@ -31,7 +31,7 @@ class DetailView : View() {
|
|||||||
|
|
||||||
fieldset(labelPosition = Orientation.VERTICAL) {
|
fieldset(labelPosition = Orientation.VERTICAL) {
|
||||||
|
|
||||||
field {
|
field{
|
||||||
vbox(7) {
|
vbox(7) {
|
||||||
add(preview)
|
add(preview)
|
||||||
}
|
}
|
||||||
@ -54,6 +54,7 @@ class DetailView : View() {
|
|||||||
add(btnImport)
|
add(btnImport)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
style {
|
style {
|
||||||
|
@ -5,18 +5,16 @@ import javafx.scene.layout.Background
|
|||||||
import javafx.scene.layout.BackgroundFill
|
import javafx.scene.layout.BackgroundFill
|
||||||
import javafx.scene.layout.CornerRadii
|
import javafx.scene.layout.CornerRadii
|
||||||
import javafx.scene.paint.Paint
|
import javafx.scene.paint.Paint
|
||||||
import tornadofx.View
|
import tornadofx.*
|
||||||
import tornadofx.flowpane
|
|
||||||
import tornadofx.paddingAll
|
|
||||||
import tornadofx.style
|
|
||||||
|
|
||||||
class FolderView : View("FolderView") {
|
class FolderView : View("FolderView"){
|
||||||
|
|
||||||
override val root = flowpane {
|
override val root = flowpane {
|
||||||
hgap = 5.0
|
hgap = 5.0
|
||||||
vgap = 5.0
|
vgap = 5.0
|
||||||
paddingAll = 10.0
|
paddingAll = 10.0
|
||||||
|
prefWidth = 732.0
|
||||||
|
prefHeight = 401.0
|
||||||
background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
|
background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
|
||||||
|
|
||||||
style {
|
style {
|
||||||
|
@ -20,28 +20,32 @@ class MainView : View("TextureSync") {
|
|||||||
|
|
||||||
override val root = borderpane {
|
override val root = borderpane {
|
||||||
background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
|
background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
|
||||||
|
|
||||||
minWidth = 1000.0
|
minWidth = 1000.0
|
||||||
|
maxWidth = 1000.0
|
||||||
minHeight = 500.0
|
minHeight = 500.0
|
||||||
|
maxHeight = 500.0
|
||||||
|
|
||||||
right = detailView.root
|
left = vbox {
|
||||||
center = vbox {
|
//background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
|
||||||
add(cvSearch)
|
anchorpane{
|
||||||
add(
|
this.fitToParentWidth()
|
||||||
|
paddingAll = 5.0
|
||||||
|
add(cvSearch)
|
||||||
|
}
|
||||||
|
anchorpane {
|
||||||
scrollpane {
|
scrollpane {
|
||||||
//this.fitToParentSize()
|
this.fitToParentSize()
|
||||||
isFitToWidth = true
|
|
||||||
isFitToHeight = true
|
|
||||||
this.vbarPolicy = ScrollPane.ScrollBarPolicy.ALWAYS
|
this.vbarPolicy = ScrollPane.ScrollBarPolicy.ALWAYS
|
||||||
|
add(folderView.root)
|
||||||
content = folderView.root
|
|
||||||
|
|
||||||
style = "-fx-background-color:transparent;"
|
style = "-fx-background-color:transparent;"
|
||||||
}
|
}
|
||||||
)
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
right = detailView.root
|
||||||
|
|
||||||
style {
|
style {
|
||||||
cvSearch.promptText = "Suche"
|
cvSearch.promptText = "Suche"
|
||||||
cvSearch.paddingAll = 5.0
|
cvSearch.paddingAll = 5.0
|
||||||
@ -68,6 +72,7 @@ class MainView : View("TextureSync") {
|
|||||||
detailView.btnImport.setOnAction {
|
detailView.btnImport.setOnAction {
|
||||||
mvc.btnImportAction()
|
mvc.btnImportAction()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user