Skip to content
Snippets Groups Projects
Commit 384d7c7e authored by tobias's avatar tobias
Browse files

Fade Defaults, Touch Gesture, Bug fix duplicate project

parent 0216e435
Branches
Tags
No related merge requests found
......@@ -41,6 +41,7 @@ import de.tobias.utils.util.Localization;
import de.tobias.utils.util.OS;
import de.tobias.utils.util.OS.OSType;
import de.tobias.utils.util.Worker;
import de.tobias.utils.util.win.User32X;
import javafx.application.Platform;
import javafx.beans.property.DoubleProperty;
import javafx.event.EventHandler;
......@@ -177,6 +178,12 @@ public class MainViewControllerV2 extends ViewController implements IMainViewCon
public void init() {
padGridPane.getStyleClass().add("pad-grid");
// TODO TOUCH
if (OS.isWindows() && User32X.isTouchAvailable()) {
padGridPane.setOnSwipeLeft(e -> showPage(currentPageShowing - 1));
padGridPane.setOnSwipeRight(e -> showPage(currentPageShowing + 1));
}
notificationPane = new NotificationPane(padGridPane);
notificationPane.getStyleClass().add(NotificationPane.STYLE_CLASS_DARK);
......
......@@ -125,8 +125,8 @@ public class ProjectReference implements Displayable {
}
private static void duplicateFiles(ProjectReference currentProject, ProjectReference newProjectReference) throws IOException {
Path oldPath = ApplicationUtils.getApplication().getPath(PathType.DOCUMENTS, currentProject.getName());
Path newPath = ApplicationUtils.getApplication().getPath(PathType.DOCUMENTS, newProjectReference.getName());
Path oldPath = ApplicationUtils.getApplication().getPath(PathType.DOCUMENTS, currentProject.getFileName());
Path newPath = ApplicationUtils.getApplication().getPath(PathType.DOCUMENTS, newProjectReference.getFileName());
Files.copy(oldPath, newPath, StandardCopyOption.COPY_ATTRIBUTES);
}
......
......@@ -18,7 +18,7 @@ public class Fade {
fadeIn = Duration.ZERO;
fadeOut = Duration.ZERO;
fadeInStart = true;
fadeInStart = false;
fadeInPause = true;
fadeOutPause = true;
fadeOutStop = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment