mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-06-07 02:01:18 -04:00
Update checkboxes representation in dark theme
Add icons to pop-up windows Add NSZ, XCZ filters in addition to XCI while option in settings selected + updated translation strings for this option in all currently available locales (bad idea, should be validated by native-speakers once they get a chance)
This commit is contained in:
parent
ab6b3e0206
commit
077aa9b0d8
25 changed files with 73 additions and 39 deletions
|
@ -2,6 +2,7 @@ package nsusbloader;
|
|||
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.ButtonType;
|
||||
import javafx.scene.image.Image;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
|
@ -29,6 +30,12 @@ public class ServiceWindow {
|
|||
|
||||
Stage dialogStage = (Stage) alertBox.getDialogPane().getScene().getWindow();
|
||||
dialogStage.setAlwaysOnTop(true);
|
||||
dialogStage.getIcons().addAll(
|
||||
new Image("/res/warn_ico32x32.png"),
|
||||
new Image("/res/warn_ico48x48.png"),
|
||||
new Image("/res/warn_ico64x64.png"),
|
||||
new Image("/res/warn_ico128x128.png")
|
||||
);
|
||||
dialogStage.toFront();
|
||||
|
||||
alertBox.show();
|
||||
|
@ -45,6 +52,17 @@ public class ServiceWindow {
|
|||
alertBox.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
|
||||
alertBox.setResizable(true); // Java bug workaround for JDR11/OpenJFX. TODO: nothing. really.
|
||||
alertBox.getDialogPane().getStylesheets().add(AppPreferences.getInstance().getTheme());
|
||||
|
||||
Stage dialogStage = (Stage) alertBox.getDialogPane().getScene().getWindow();
|
||||
dialogStage.setAlwaysOnTop(true);
|
||||
dialogStage.getIcons().addAll(
|
||||
new Image("/res/ask_ico32x32.png"),
|
||||
new Image("/res/ask_ico48x48.png"),
|
||||
new Image("/res/ask_ico64x64.png"),
|
||||
new Image("/res/ask_ico128x128.png")
|
||||
);
|
||||
dialogStage.toFront();
|
||||
|
||||
Optional<ButtonType> result = alertBox.showAndWait();
|
||||
|
||||
return (result.isPresent() && result.get() == ButtonType.OK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue