Skip to content

Commit

Permalink
close #655: Open With dialog with readable text
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Nov 21, 2024
1 parent a04560b commit c402332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ public OpenWithDialog(@Named("primaryStage") Stage stage) {
setScene(scene);
app().registerScene(scene);
eventStudio().addAnnotatedListeners(this);
Platform.runLater(() -> {
scene.getWindow().sizeToScene();
setResizable(false);
});
this.setOnShown(e -> requestFocus());
}

Expand Down Expand Up @@ -132,6 +128,10 @@ OpenWithDialog initFor(InputPdfArgumentsLoadRequest event) {
buttons.getChildren().add(current);
}
});
Platform.runLater(() -> {
getScene().getWindow().sizeToScene();
setResizable(false);
});
return this;
}

Expand Down
2 changes: 2 additions & 0 deletions pdfsam-themes/src/main/resources/themes/light/theme.last.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*/
.footer-button, .footer-button:default, .footer-button:focused {
-fx-padding: 0.166667em 1.333333em 0.166667em 1.0em;
-fx-wrap-text: true;
-fx-text-overrun: clip;
}

.footer-open-button, .footer-open-button:default, .footer-open-button:focus-visible {
Expand Down

0 comments on commit c402332

Please sign in to comment.