diff --git a/src/main/java/com/QYun/SuperSpineViewer/GUI/SpineController.java b/src/main/java/com/QYun/SuperSpineViewer/GUI/SpineController.java index 9ea52fe..18450eb 100644 --- a/src/main/java/com/QYun/SuperSpineViewer/GUI/SpineController.java +++ b/src/main/java/com/QYun/SuperSpineViewer/GUI/SpineController.java @@ -78,7 +78,7 @@ public void initialize(URL location, ResourceBundle resources) { StackPane header = new StackPane(); AtomicReference headerColor = new AtomicReference<>(getDefaultColor((int) ((Math.random() * 12) % 22))); - header.setStyle("-fx-background-radius: 0 5 0 0;-fx-min-height: 138; -fx-background-color: " + headerColor); + header.setStyle("-fx-background-radius: 0 5 0 0; -fx-min-height: 138; -fx-background-color: " + headerColor); Label project = new Label("Waiting Loading..."); project.setStyle("-fx-text-fill: #f1f1f2;"); @@ -218,7 +218,7 @@ public void initialize(URL location, ResourceBundle resources) { spine.setIsPlay(true); playButton.setGraphic(pauseIcon); headerColor.set(getDefaultColor((int) ((Math.random() * 12) % 22))); - header.setStyle("-fx-background-radius: 0 5 0 0; -fx-background-color: " + headerColor); + header.setStyle("-fx-background-radius: 0 5 0 0; -fx-min-height: 138; -fx-background-color: " + headerColor); playButton.setStyle("-fx-background-radius: 40;-fx-background-color: " + getDefaultColor((int) ((Math.random() * 20) % 22))); playButton.setRipplerFill(Color.valueOf(headerColor.get())); } diff --git a/src/main/java/com/QYun/SuperSpineViewer/RuntimesLoader.java b/src/main/java/com/QYun/SuperSpineViewer/RuntimesLoader.java index 96bb79d..b177200 100644 --- a/src/main/java/com/QYun/SuperSpineViewer/RuntimesLoader.java +++ b/src/main/java/com/QYun/SuperSpineViewer/RuntimesLoader.java @@ -17,11 +17,11 @@ public class RuntimesLoader extends Controller { public static final SimpleIntegerProperty spineVersion = new SimpleIntegerProperty(0); - final LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); + private final LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); private final String[] extraSuffixes = {"", ".txt", ".bytes"}; private final String[] dataSuffixes = {"", ".json", ".skel"}; private final String[] atlasSuffixes = {".atlas", "-pro.atlas", "-ess.atlas", "-pma.atlas"}; - SuperSpine spine = new SuperSpine(); + private final SuperSpine spine = new SuperSpine(); private boolean binaryVersion(File skelFile) { try { @@ -93,6 +93,7 @@ else if (json.contains("2.1.")) } private boolean initLibDGX() { + config.samples = 16; try { switch (spineVersion.get()) { case 40 -> new LwjglFXApplication(new Spine40(), spineRender, config);