Skip to content

Commit

Permalink
Make camera error message appear centered
Browse files Browse the repository at this point in the history
  • Loading branch information
zapek committed Nov 11, 2024
1 parent 6968d29 commit 3c744c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jpackage {
mustRunAfter deleteLibs
finalizedBy packagePortable, deletePortable
appName = parent.project.name
appVersion = "${project.version}".split("-")[0]
vendor = "David Gerber"
copyright = "Copyright 2019-2024 by David Gerber. All Rights Reserved"
appDescription = parent.project.name
Expand Down
6 changes: 3 additions & 3 deletions ui/src/main/resources/view/qrcode/camera.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

<?import javafx.scene.control.Label?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.VBox?>
<VBox alignment="CENTER" prefWidth="640.0" prefHeight="480.0" minWidth="640.0" minHeight="480.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="io.xeres.ui.controller.qrcode.CameraWindowController">
<?import javafx.scene.layout.StackPane?>
<StackPane prefWidth="640.0" prefHeight="480.0" minWidth="640.0" minHeight="480.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="io.xeres.ui.controller.qrcode.CameraWindowController">
<ImageView fx:id="capturedImage" fitWidth="640" fitHeight="480" pickOnBounds="true" preserveRatio="true"/>
<Label fx:id="error" visible="false"/>
</VBox>
</StackPane>

0 comments on commit 3c744c1

Please sign in to comment.