From c20c6fb264ff8e3d12f8fdc7b0cff15fe702d23c Mon Sep 17 00:00:00 2001 From: Haoming Yin Date: Fri, 22 Sep 2017 13:53:36 +1200 Subject: [PATCH] [WIP] Added new toggle for steer turning mode and submit and reset button (restore the setting to default) - minor fix of UI elements to make the font smaller - centred labels and buttons tags: #story[1246] --- .../css/dialogs/KeyBindingDialog.css | 23 +++-- .../views/dialogs/KeyBindingDialog.fxml | 97 ++++++++++++++----- 2 files changed, 88 insertions(+), 32 deletions(-) diff --git a/src/main/resources/css/dialogs/KeyBindingDialog.css b/src/main/resources/css/dialogs/KeyBindingDialog.css index 33a239d3..6f85fd91 100644 --- a/src/main/resources/css/dialogs/KeyBindingDialog.css +++ b/src/main/resources/css/dialogs/KeyBindingDialog.css @@ -6,24 +6,35 @@ JFXButton { -fx-background-color: -fx-pp-light-text-color; -fx-text-fill: -fx-pp-theme-color; - -fx-font-size: 17px; - -fx-effect: -fx-pp-dropshadow-dark; + -fx-font-size: 15px; + -fx-effect: -fx-pp-dropshadow-light; } Label { - -fx-font-size: 25px; + -fx-font-size: 20px; -fx-text-fill: -fx-pp-theme-color; - /*-fx-effect: -fx-pp-dropshadow-dark;*/ + -fx-effect: -fx-pp-dropshadow-light; } JFXButton:hover { - -fx-font-size: 20px; + -fx-font-size: 18px; -fx-background-color: -fx-pp-light-theme-color; -fx-text-fill: -fx-pp-light-text-color; } JFXButton:focused { - -fx-font-size: 20px; + -fx-font-size: 18px; -fx-background-color: -fx-pp-theme-color; -fx-text-fill: -fx-pp-light-text-color; +} + +JFXToggleButton { + -jfx-toggle-color: -fx-pp-theme-color; + -fx-text-fill: -fx-pp-theme-color; +} + +#resetBtn, #confirmBtn { + -fx-background-color: -fx-pp-theme-color; + -fx-text-fill: -fx-pp-front-color; + -fx-effect: -fx-pp-dropshadow-light; } \ No newline at end of file diff --git a/src/main/resources/views/dialogs/KeyBindingDialog.fxml b/src/main/resources/views/dialogs/KeyBindingDialog.fxml index 55a4c44f..29eaa1b3 100644 --- a/src/main/resources/views/dialogs/KeyBindingDialog.fxml +++ b/src/main/resources/views/dialogs/KeyBindingDialog.fxml @@ -2,25 +2,25 @@ + - - - + + - + @@ -29,44 +29,89 @@ +