diff --git a/GUI/src/main/java/ui/About.java b/GUI/src/main/java/ui/About.java index 70126627..2d156d84 100644 --- a/GUI/src/main/java/ui/About.java +++ b/GUI/src/main/java/ui/About.java @@ -21,7 +21,7 @@ public class About { private static Scene aboutScene; - private static final ImageView ivSplash = new ImageView(Constants.imgSplash); + private static final ImageView IV_SPLASH = new ImageView(Constants.imgSplash); private Label lblDescription; private Label lblDriftyVersion; private Label lblYtDlpVersion; @@ -38,7 +38,7 @@ private void setupLayout() { createLabels(); createHyperlinks(); setupStage(); - aboutRoot.getChildren().addAll(ivSplash, lblDescription, lblDriftyVersion, lblYtDlpVersion); + aboutRoot.getChildren().addAll(IV_SPLASH, lblDescription, lblDriftyVersion, lblYtDlpVersion); if (AppSettings.GET.isFfmpegWorking() && AppSettings.GET.ffmpegVersion() != null && !AppSettings.GET.ffmpegVersion().isEmpty()) { Label lblFfmpegVersion = UI_COMPONENT_BUILDER_INSTANCE.buildLabel("FFMPEG version: " + AppSettings.GET.ffmpegVersion(), Font.font("Arial", FontWeight.BOLD, 14), LinearGradient.valueOf("linear-gradient(to right, #0f0c29, #302b63, #24243e)")); aboutRoot.getChildren().add(lblFfmpegVersion); @@ -49,9 +49,9 @@ private void setupLayout() { } private void setupImageView() { - ivSplash.setFitWidth(Constants.SCREEN_WIDTH * .2); - ivSplash.setFitHeight(Constants.SCREEN_HEIGHT * .2); - ivSplash.setPreserveRatio(true); + IV_SPLASH.setFitWidth(Constants.SCREEN_WIDTH * .2); + IV_SPLASH.setFitHeight(Constants.SCREEN_HEIGHT * .2); + IV_SPLASH.setPreserveRatio(true); } private void setupStage() { @@ -98,6 +98,6 @@ public static Scene getScene() { } public static ImageView getIvSplash() { - return ivSplash; + return IV_SPLASH; } } diff --git a/GUI/src/main/java/ui/Settings.java b/GUI/src/main/java/ui/Settings.java index 733a2449..17e3291a 100644 --- a/GUI/src/main/java/ui/Settings.java +++ b/GUI/src/main/java/ui/Settings.java @@ -103,7 +103,7 @@ private void createAutoPasteCheck() { private void createLabels() { Paint textFill = LinearGradient.valueOf("linear-gradient(to right, #0f0c29, #302b63, #24243e)"); - lblSettingsHeading = UI_COMPONENT_BUILDER_INSTANCE.buildLabel("Settings", Font.font("monospace", FontWeight.EXTRA_BOLD, 100), textFill, 0 ,-150); + lblSettingsHeading = UI_COMPONENT_BUILDER_INSTANCE.buildLabel("Settings", Font.font("monospace", FontWeight.EXTRA_BOLD, 100), textFill, 0, -150); lblAutoPaste = UI_COMPONENT_BUILDER_INSTANCE.buildLabel("Auto-Paste", Font.font("Arial", FontWeight.EXTRA_BOLD, 20), textFill, 0, 45); lblTheme = UI_COMPONENT_BUILDER_INSTANCE.buildLabel("Theme", Font.font("Arial", FontWeight.EXTRA_BOLD, 20), textFill, -20, 130); lblDefaultDownloadDir = UI_COMPONENT_BUILDER_INSTANCE.buildLabel("Default Download Directory", Font.font("Arial", FontWeight.BOLD, 20), textFill, -160, -50);