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

Merge branch 'develop' into feature/led

parents 45af7dd8 d1203109
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,6 @@ import java.io.IOException; ...@@ -28,7 +28,6 @@ import java.io.IOException;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
// TODO Extract into lang file
public class AboutDialog extends NVC { public class AboutDialog extends NVC {
@FXML @FXML
...@@ -40,6 +39,9 @@ public class AboutDialog extends NVC { ...@@ -40,6 +39,9 @@ public class AboutDialog extends NVC {
@FXML @FXML
private Label versionLabel; private Label versionLabel;
@FXML
private Label platformLabel;
@FXML @FXML
private Label authorLabel; private Label authorLabel;
...@@ -52,7 +54,7 @@ public class AboutDialog extends NVC { ...@@ -52,7 +54,7 @@ public class AboutDialog extends NVC {
@FXML @FXML
private Label graphicsLabel; private Label graphicsLabel;
private Window owner; private final Window owner;
public AboutDialog(Window owner) { public AboutDialog(Window owner) {
this.owner = owner; this.owner = owner;
...@@ -68,7 +70,7 @@ public class AboutDialog extends NVC { ...@@ -68,7 +70,7 @@ public class AboutDialog extends NVC {
AnchorPane.setLeftAnchor(icon, 14.0); AnchorPane.setLeftAnchor(icon, 14.0);
AnchorPane.setTopAnchor(icon, 14.0); AnchorPane.setTopAnchor(icon, 14.0);
icon.setOnMouseClicked((e) -> getStageContainer().ifPresent(NVCStage::close)); icon.setOnMouseClicked(e -> getStageContainer().ifPresent(NVCStage::close));
ApplicationInfo info = ApplicationUtils.getApplication().getInfo(); ApplicationInfo info = ApplicationUtils.getApplication().getInfo();
versionLabel.setText(info.getVersion()); versionLabel.setText(info.getVersion());
...@@ -76,6 +78,10 @@ public class AboutDialog extends NVC { ...@@ -76,6 +78,10 @@ public class AboutDialog extends NVC {
graphicsLabel.setText(Localization.getString(Strings.UI_DIALOG_ABOUT_GRAPHICS)); graphicsLabel.setText(Localization.getString(Strings.UI_DIALOG_ABOUT_GRAPHICS));
libsLabel.setText(Localization.getString(Strings.UI_DIALOG_ABOUT_LIBRARIES)); libsLabel.setText(Localization.getString(Strings.UI_DIALOG_ABOUT_LIBRARIES));
platformLabel.setText(String.format("%s (%s) + %s (%s)", System.getProperty("java.version"),
System.getProperty("java.vendor"), System.getProperty("javafx.version"),
System.getProperty("javafx.runtime.version")));
Hyperlink websiteLink = new Hyperlink(Localization.getString(Strings.UI_DIALOG_ABOUT_WEBSITE)); Hyperlink websiteLink = new Hyperlink(Localization.getString(Strings.UI_DIALOG_ABOUT_WEBSITE));
websiteLink.setPadding(Insets.EMPTY); websiteLink.setPadding(Insets.EMPTY);
websiteLink.setFocusTraversable(false); websiteLink.setFocusTraversable(false);
......
...@@ -234,3 +234,13 @@ PathMatchDialog.Table.Column.LocalPath=Lokaler Pfad ...@@ -234,3 +234,13 @@ PathMatchDialog.Table.Column.LocalPath=Lokaler Pfad
PathMatchDialog.Table.Column.Action=Aktionen PathMatchDialog.Table.Column.Action=Aktionen
PathMatchDialog.Button.Cancel=Abbrechen PathMatchDialog.Button.Cancel=Abbrechen
PathMatchDialog.Button.Finish=\u00DCbernehmen PathMatchDialog.Button.Finish=\u00DCbernehmen
about.label.headline=\u00DCber PLayWall
about.label.version=Version:
about.label.author=Autor:
about.label.graphics=Grafiken:
about.label.platform=Plattform:
about.label.website=Webseite:
about.label.code=Code:
about.label.libraries=Bibliotheken:
about.label.thanksgiving=Besonderen Dank an die treuen Betatester Stefan und Robert.
\ No newline at end of file
...@@ -19,49 +19,56 @@ ...@@ -19,49 +19,56 @@
</ImageView> </ImageView>
<VBox alignment="CENTER_LEFT" spacing="7.0"> <VBox alignment="CENTER_LEFT" spacing="7.0">
<children> <children>
<Label styleClass="about-headline" text="Über PlayWall"> <Label styleClass="about-headline" text="%about.label.headline">
<VBox.margin> <VBox.margin>
<Insets bottom="14.0"/> <Insets bottom="14.0"/>
</VBox.margin> </VBox.margin>
</Label> </Label>
<HBox spacing="14.0"> <HBox spacing="14.0">
<children> <children>
<Label alignment="CENTER_RIGHT" prefWidth="75.0" text="Version:" textAlignment="RIGHT"/> <Label alignment="CENTER_RIGHT" prefWidth="75.0" text="%about.label.version" textAlignment="RIGHT"/>
<Label fx:id="versionLabel" text="1.0.0"/> <Label fx:id="versionLabel" text="1.0.0"/>
</children> </children>
</HBox> </HBox>
<HBox spacing="14.0"> <HBox spacing="14.0">
<children> <children>
<Label alignment="CENTER_RIGHT" prefWidth="75.0" text="Autor:" textAlignment="RIGHT"/> <Label alignment="CENTER_RIGHT" prefWidth="75.0" text="%about.label.author" textAlignment="RIGHT"/>
<Label fx:id="authorLabel" text="Tobias Ullerich"/> <Label fx:id="authorLabel" text="Tobias Ullerich"/>
</children> </children>
</HBox> </HBox>
<HBox spacing="14.0"> <HBox spacing="14.0">
<children> <children>
<Label alignment="CENTER_RIGHT" prefWidth="75.0" text="Grafiken:" <Label alignment="CENTER_RIGHT" prefWidth="75.0" text="%about.label.graphics"
textAlignment="RIGHT"/> textAlignment="RIGHT"/>
<Label fx:id="graphicsLabel" text="Robert Goldmann"/> <Label fx:id="graphicsLabel" text="Robert Goldmann"/>
</children> </children>
</HBox> </HBox>
<HBox spacing="14.0">
<children>
<Label alignment="CENTER_RIGHT" prefWidth="75.0" text="%about.label.platform" textAlignment="RIGHT"/>
<Label fx:id="platformLabel" text="controlsfx" wrapText="true"/>
</children>
</HBox>
<HBox fx:id="websiteContainer" spacing="14.0"> <HBox fx:id="websiteContainer" spacing="14.0">
<children> <children>
<Label alignment="CENTER_RIGHT" prefWidth="75.0" text="Webseite" textAlignment="RIGHT"/> <Label alignment="CENTER_RIGHT" prefWidth="75.0" text="%about.label.website" textAlignment="RIGHT"/>
</children> </children>
</HBox> </HBox>
<HBox fx:id="codeContainer" spacing="14.0"> <HBox fx:id="codeContainer" spacing="14.0">
<children> <children>
<Label alignment="CENTER_RIGHT" prefWidth="75.0" text="Code:" textAlignment="RIGHT"/> <Label alignment="CENTER_RIGHT" prefWidth="75.0" text="%about.label.code" textAlignment="RIGHT"/>
</children> </children>
</HBox> </HBox>
<HBox spacing="14.0"> <HBox spacing="14.0">
<children> <children>
<Label alignment="CENTER_RIGHT" minWidth="75.0" prefWidth="75.0" text="Libraries:" <Label alignment="CENTER_RIGHT" minWidth="75.0" prefWidth="75.0" text="%about.label.libraries"
textAlignment="RIGHT"/> textAlignment="RIGHT"/>
<Label fx:id="libsLabel" text="controlsfx" wrapText="true"/> <Label fx:id="libsLabel" text="controlsfx" wrapText="true"/>
</children> </children>
</HBox> </HBox>
<Label maxWidth="1.7976931348623157E308" <Label maxWidth="1.7976931348623157E308"
text="Besonderen Dank an die treuen Betatester Stefan und Robert." wrapText="true"> text="%about.label.thanksgiving" wrapText="true">
<VBox.margin> <VBox.margin>
<Insets left="89.0"/> <Insets left="89.0"/>
</VBox.margin> </VBox.margin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment