Skip to content
Snippets Groups Projects
Commit 8cd77ce2 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Apply stylesheets to new profile, new project dialog

parent 5af6f6c4
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,8 @@ public class NewProfileDialog extends NVC { ...@@ -65,6 +65,8 @@ public class NewProfileDialog extends NVC {
@Override @Override
public void initStage(Stage stage) { public void initStage(Stage stage) {
PlayPadMain.stageIcon.ifPresent(stage.getIcons()::add); PlayPadMain.stageIcon.ifPresent(stage.getIcons()::add);
PlayPadPlugin.styleable().applyStyleSheet(stage);
stage.initModality(Modality.WINDOW_MODAL);
stage.setTitle(Localization.getString(Strings.UI_Dialog_NewProfile_Title)); stage.setTitle(Localization.getString(Strings.UI_Dialog_NewProfile_Title));
stage.setWidth(400); stage.setWidth(400);
...@@ -75,11 +77,6 @@ public class NewProfileDialog extends NVC { ...@@ -75,11 +77,6 @@ public class NewProfileDialog extends NVC {
stage.setMaxWidth(500); stage.setMaxWidth(500);
stage.initModality(Modality.WINDOW_MODAL);
if (Profile.currentProfile() != null) {
PlayPadPlugin.styleable().applyStyleSheet(stage);
}
} }
@FXML @FXML
......
...@@ -6,7 +6,6 @@ import de.thecodelabs.utils.util.Localization; ...@@ -6,7 +6,6 @@ import de.thecodelabs.utils.util.Localization;
import de.tobias.playpad.PlayPadMain; import de.tobias.playpad.PlayPadMain;
import de.tobias.playpad.PlayPadPlugin; import de.tobias.playpad.PlayPadPlugin;
import de.tobias.playpad.Strings; import de.tobias.playpad.Strings;
import de.tobias.playpad.profile.Profile;
import de.tobias.playpad.profile.ref.ProfileReference; import de.tobias.playpad.profile.ref.ProfileReference;
import de.tobias.playpad.profile.ref.ProfileReferenceManager; import de.tobias.playpad.profile.ref.ProfileReferenceManager;
import de.tobias.playpad.project.Project; import de.tobias.playpad.project.Project;
...@@ -69,6 +68,8 @@ public class ProjectNewDialog extends NVC { ...@@ -69,6 +68,8 @@ public class ProjectNewDialog extends NVC {
@Override @Override
public void initStage(Stage stage) { public void initStage(Stage stage) {
PlayPadMain.stageIcon.ifPresent(stage.getIcons()::add); PlayPadMain.stageIcon.ifPresent(stage.getIcons()::add);
PlayPadPlugin.styleable().applyStyleSheet(stage);
stage.initModality(Modality.WINDOW_MODAL);
stage.setTitle(Localization.getString(Strings.UI_Dialog_NewProject_Title)); stage.setTitle(Localization.getString(Strings.UI_Dialog_NewProject_Title));
stage.setWidth(560); stage.setWidth(560);
...@@ -78,12 +79,6 @@ public class ProjectNewDialog extends NVC { ...@@ -78,12 +79,6 @@ public class ProjectNewDialog extends NVC {
stage.setMinHeight(380); stage.setMinHeight(380);
stage.setMaxWidth(560); stage.setMaxWidth(560);
stage.initModality(Modality.WINDOW_MODAL);
if (Profile.currentProfile() != null) {
PlayPadPlugin.styleable().applyStyleSheet(stage);
}
} }
public Optional<ProjectReference> showAndWait() { public Optional<ProjectReference> showAndWait() {
...@@ -92,7 +87,7 @@ public class ProjectNewDialog extends NVC { ...@@ -92,7 +87,7 @@ public class ProjectNewDialog extends NVC {
} }
@FXML @FXML
private void finishButtonHandler(ActionEvent evenet) { private void finishButtonHandler(ActionEvent event) {
try { try {
ProfileReference profileReference = profileComboBox.getSelectionModel().getSelectedItem(); ProfileReference profileReference = profileComboBox.getSelectionModel().getSelectedItem();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment