Skip to content

Commit

Permalink
fix: Fixed linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Jun 24, 2024
1 parent 2d7a734 commit 574e60c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions GUI/src/main/java/ui/About.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -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() {
Expand Down Expand Up @@ -98,6 +98,6 @@ public static Scene getScene() {
}

public static ImageView getIvSplash() {
return ivSplash;
return IV_SPLASH;
}
}
2 changes: 1 addition & 1 deletion GUI/src/main/java/ui/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 574e60c

Please sign in to comment.