add change folder directory
This commit is contained in:
parent
e80902428f
commit
56e40f304f
@ -3,11 +3,14 @@ package dev.mateuszkowalczyk.ffm.view.workspace;
|
||||
import dev.mateuszkowalczyk.ffm.app.WorkspaceService;
|
||||
import dev.mateuszkowalczyk.ffm.data.database.person.Person;
|
||||
import dev.mateuszkowalczyk.ffm.utils.ResourceLoader;
|
||||
import dev.mateuszkowalczyk.ffm.view.SceneEnum;
|
||||
import dev.mateuszkowalczyk.ffm.view.StageController;
|
||||
import dev.mateuszkowalczyk.ffm.view.workspace.elements.ElementsEnum;
|
||||
import dev.mateuszkowalczyk.ffm.view.workspace.elements.FaceContainerController;
|
||||
import dev.mateuszkowalczyk.ffm.view.workspace.elements.ImageContainerController;
|
||||
import dev.mateuszkowalczyk.ffm.view.workspace.elements.PeopleContainerController;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.event.Event;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.fxml.Initializable;
|
||||
@ -78,4 +81,12 @@ public class MainPageController implements Initializable {
|
||||
this.person = person;
|
||||
this.setElement(ElementsEnum.ImagesContainerForPerson);
|
||||
}
|
||||
|
||||
public void cleanAppStart(Event event) {
|
||||
try {
|
||||
StageController.getInstance().setScene(SceneEnum.WelcomePage);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
src/main/resources/icons/infinity.png
Normal file
BIN
src/main/resources/icons/infinity.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 B |
@ -34,6 +34,18 @@
|
||||
</ImageView>
|
||||
</graphic>
|
||||
</Button>
|
||||
<Button mnemonicParsing="false" onAction="#cleanAppStart" prefWidth="50.0" style="-fx-background-color: trasparent;">
|
||||
<VBox.margin>
|
||||
<Insets top="50.0" />
|
||||
</VBox.margin>
|
||||
<graphic>
|
||||
<ImageView>
|
||||
<image>
|
||||
<Image url="@../../icons/infinity.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic>
|
||||
</Button>
|
||||
</children>
|
||||
<BorderPane.margin>
|
||||
<Insets top="20.0" />
|
||||
@ -41,6 +53,9 @@
|
||||
</VBox>
|
||||
</left>
|
||||
<center>
|
||||
<ScrollPane fx:id="mainContainer" fitToWidth="true" maxWidth="1.7976931348623157E308" prefHeight="200.0" BorderPane.alignment="CENTER" />
|
||||
<ScrollPane fx:id="mainContainer" fitToWidth="true" maxWidth="1.7976931348623157E308" prefHeight="200.0" BorderPane.alignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin></ScrollPane>
|
||||
</center>
|
||||
</BorderPane>
|
||||
|
Loading…
Reference in New Issue
Block a user