delete dialog btn text changed, ui fixes import view

This commit is contained in:
Hendrik Schutter 2019-06-07 21:39:26 +02:00
parent 1c1f12ecaf
commit b1984ac8dd
3 changed files with 5 additions and 5 deletions

View File

@ -20,8 +20,8 @@ class JFXOkayCancelAlert(heading: String, body: String, private var btnStyle: St
var okayAction: EventHandler<ActionEvent>? = null
var cancelAction: EventHandler<ActionEvent>? = null
private var okayText = "Okay"
private var cancelText = "Cancel"
private var okayText = "Löschen"
private var cancelText = "Abbrechen"
private var headingText = Text(heading)
private var bodyText = Text(body)

View File

@ -199,7 +199,7 @@ class RootController : Controller() {
fun deleteTexture(data: Texture) {
val dialogDelete = JFXOkayCancelAlert(
"Löschen",
"Wirklich löschen?",
"Textur wirklich löschen?",
"-fx-button-type: RAISED; -fx-background-color: #2b7bbb; -fx-text-fill: #000000;"
)
dialogDelete.okayAction = EventHandler {

View File

@ -85,8 +85,8 @@ class ImportView : View() {
cvTags.style = "-fx-background-color: #3c3f41; -fx-text-inner-color: #b15b2e;"
//TODO change color of Chip´s see: https://github.com/jfoenixadmin/JFoenix/blob/master/jfoenix/src/main/resources/com/jfoenix/assets/css/controls/jfx-chip-view.css#L52
btnImport.style = "-fx-button-type: RAISED; -fx-background-color: #3c3f41; -fx-text-fill: #2b7bbb;"
btnBack.style = "-fx-button-type: RAISED; -fx-background-color: #3c3f41; -fx-text-fill: #2b7bbb; -fx-padding: 10 10 10 10;"
btnImport.style = "-fx-button-type: RAISED; -fx-background-color: #b15b2e; -fx-text-fill: #3c3f41;"
btnBack.style = "-fx-button-type: RAISED; -fx-background-color: #3c3f41; -fx-text-fill: #2b7bbb; -fx-padding: 10;"
}
tfFilePath.textProperty().addListener{ _, _, _ -> ivc.validateImport() }