diff --git a/JFoenixParts b/JFoenixParts index 149f2f58..47ed3df2 160000 --- a/JFoenixParts +++ b/JFoenixParts @@ -1 +1 @@ -Subproject commit 149f2f5884d21af9caaa1c7f6709499f9cab903b +Subproject commit 47ed3df228fa63b7876eb288a73bb308325bc43f diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index 631d3744..fc659afc 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -258,7 +258,7 @@ function verifyLauncher(e) { var iter = 0; authTypes = {}; result.list.forEach(function(auth_type, i, arr) { - var serverAuth = new javafx.scene.control.ComboBox(); + var serverAuth = new com.jfoenixparts.controls.JFXPComboBox(); serverAuth.getStyleClass().add("authOptions"); authOptions.getItems().add(auth_type.displayName); authTypes[auth_type.displayName] = auth_type.name; diff --git a/Launcher/runtime/dialog/overlay/debug/debug.css b/Launcher/runtime/dialog/overlay/debug/debug.css index 4edf88b4..f3dd4820 100644 --- a/Launcher/runtime/dialog/overlay/debug/debug.css +++ b/Launcher/runtime/dialog/overlay/debug/debug.css @@ -24,7 +24,7 @@ #overlay > #action.close { -fx-background-radius: 0; -fx-text-fill: white; -fx-background-position: center; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-background-color: #2d83ce; -fx-pref-width: 150px; -fx-pref-height: 25px; @@ -44,7 +44,7 @@ #overlay > #action.kill { -fx-background-radius: 0; -fx-text-fill: white; -fx-background-position: center; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-background-color: #CE5757; -fx-pref-width: 150px; -fx-pref-height: 25px; diff --git a/Launcher/runtime/dialog/overlay/debug/debug.fxml b/Launcher/runtime/dialog/overlay/debug/debug.fxml index 9666c28e..1f5489c0 100644 --- a/Launcher/runtime/dialog/overlay/debug/debug.fxml +++ b/Launcher/runtime/dialog/overlay/debug/debug.fxml @@ -1,7 +1,7 @@ - - + + @@ -16,12 +16,12 @@ - - - + - - + + - - - - + diff --git a/Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml b/Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml index c5dd660f..a8dec2f4 100644 --- a/Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml +++ b/Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml @@ -1,6 +1,6 @@ - + @@ -22,10 +22,10 @@ - + @@ -46,15 +46,15 @@ - - + - - - - - + diff --git a/Launcher/runtime/dialog/scenes/options/options.fxml b/Launcher/runtime/dialog/scenes/options/options.fxml index 4884c670..d0d45712 100644 --- a/Launcher/runtime/dialog/scenes/options/options.fxml +++ b/Launcher/runtime/dialog/scenes/options/options.fxml @@ -1,6 +1,6 @@ - + @@ -38,21 +38,21 @@ - - - + diff --git a/Launcher/runtime/dialog/scenes/options/options.js b/Launcher/runtime/dialog/scenes/options/options.js index 98c28232..8ad762d2 100644 --- a/Launcher/runtime/dialog/scenes/options/options.js +++ b/Launcher/runtime/dialog/scenes/options/options.js @@ -83,7 +83,7 @@ var options = { var nodelist = new java.util.ArrayList; modlist.getChildren().forEach(function(node,i,arr) { - if(node instanceof javafx.scene.control.CheckBox) + if(node instanceof com.jfoenixparts.controls.JFXPCheckBox) nodelist.add(node); }); nodelist.forEach(function(node,i,arr) { @@ -109,7 +109,7 @@ var options = { modDescription = modFile.info; if(modFile.subTreeLevel != null && modFile.subTreeLevel > 1) subLevel = modFile.subTreeLevel; - var testMod = new javafx.scene.control.CheckBox(modName); + var testMod = new com.jfoenixparts.controls.JFXPCheckBox(modName); testMod.getStyleClass().add("checkboxOpt"); if(subLevel > 1) diff --git a/Launcher/runtime/dialog/servers.css b/Launcher/runtime/dialog/servers.css index ce53884e..71ee3ca5 100644 --- a/Launcher/runtime/dialog/servers.css +++ b/Launcher/runtime/dialog/servers.css @@ -2,7 +2,7 @@ /* Server buttons */ .server-button { - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-font-weight: bold; -fx-font-size: 16pt; -fx-background-color: transparent; diff --git a/Launcher/runtime/dialog/styles.css b/Launcher/runtime/dialog/styles.css index b2b2f356..3eaa3f22 100644 --- a/Launcher/runtime/dialog/styles.css +++ b/Launcher/runtime/dialog/styles.css @@ -1,60 +1,3 @@ -/*-- Without jfoenix --*/ -Button { - -fx-background-color: TRANSPARENT, TRANSPARENT, TRANSPARENT, TRANSPARENT; - -fx-background-radius: 3px; - -fx-background-insets: 0px; -} - -CheckBox .box-container { - -fx-shape: "M 400 100 L 400 100 A 50 50 0 1 1 400 250 A 50 50 0 1 1 400 100 "; - -fx-padding: 10; -} - -CheckBox .box, -CheckBox:indeterminate .box, -CheckBox:indeterminate:selected .box{ - -fx-pref-width: 18; - -fx-pref-height: 18; - - -fx-background-color: TRANSPARENT; - -fx-background-radius: 2; - - -fx-border-color: #909090; - -fx-border-style: solid; - -fx-border-radius: 2; - -fx-border-width: 2; -} - -CheckBox:selected .box { - -fx-border-color: #5fd97a; - -fx-background-color: #5fd97a; -} - -CheckBox .mark { - -fx-background-color: TRANSPARENT; -} - -CheckBox:selected .mark { - -fx-shape: "M384 690l452-452 60 60-512 512-238-238 60-60z"; - -fx-max-width: 15; - -fx-max-height: 12; - - -fx-background-color: WHITE; - - -fx-border-color: WHITE; - -fx-border-width: 2; - -fx-border-radius: 2; -} - -CheckBox .indeterminate-mark{ - -fx-background-color: #5fd97a; - -fx-background-radius: 2; - -fx-border-width: 0; - -fx-max-width: 10; - -fx-max-height: 10; -} - - /*-- DrLeonardo Design --*/ Button, CheckBox, ComboBox, RadioButton { -fx-cursor: hand; @@ -113,7 +56,7 @@ #bar { /** buttons in bar **/ #close { -fx-background-position: center; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-background-radius: 0; -fx-background-color: #CE5757; -fx-pref-width: 46px; @@ -121,7 +64,7 @@ #close { } #hide, #back, #goConsole, #settings, #discord { -fx-background-position: center; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-background-radius: 0; -fx-pref-width: 46px; -fx-pref-height: 45px; @@ -148,7 +91,7 @@ #send { -fx-background-radius: 0; -fx-text-fill: black; -fx-background-position: center; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-background-color: #ffffff; -fx-pref-width: 150px; -fx-pref-height: 30px; @@ -172,7 +115,7 @@ #logo { /** Buttons & textarea**/ .auth { - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-font-weight: bold; -fx-font-size: 13pt; -fx-background-radius: 0; @@ -291,7 +234,7 @@ .serverentrance { /** buttons **/ .clientLaunch{ - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-font-weight: bold; -fx-font-size: 16pt; -fx-background-radius: 0; @@ -300,7 +243,7 @@ .clientLaunch{ } .clientSettings{ -fx-background-position: center; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-background-color: #5fd97a; -fx-background-radius: 0; } @@ -309,12 +252,12 @@ .clientLaunch:hover, .clientLaunch:pressed { -fx-background-color: #75e18c; } /* Pressets options */ .pressetLight, .pressetMedium, .pressetHigh { - -jfx-toggle-color: #5fd97a; - -jfx-untoggle-color: #FAFAFA; - -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); - -jfx-untoggle-line-color: #999999; - -jfx-size: 10.0; - -jfx-disable-visual-focus: false; + -jfxp-toggle-color: #5fd97a; + -jfxp-untoggle-color: #FAFAFA; + -jfxp-toggle-line-color: rgba(116, 192, 133, 0.79); + -jfxp-untoggle-line-color: #999999; + -jfxp-size: 10.0; + -jfxp-disable-visual-focus: false; } /* Scrolls */ @@ -370,6 +313,11 @@ .description-text { -fx-font-size: 12px; } +.checkboxOpt { + -jfxp-checked-color: #5fd97a; + -jfxp-unchecked-color: #909090; +} + .modname { -fx-text-fill: #323232; } @@ -407,7 +355,7 @@ #serverinfo > .viewport { #servercontainer{ -fx-background-color: transparent; - -jfx-button-type: FLAT; + -jfxp-button-type: FLAT; -fx-pref-width: 282px; -fx-pref-height: 75px; }