Skip to content

Commit d6d3bb2

Browse files
committed
#18 Update about stage to get correct layout on Linux
1 parent 18cb09c commit d6d3bb2

File tree

2 files changed

+46
-15
lines changed

2 files changed

+46
-15
lines changed

src/main/resources/com/github/introfog/gitwave/view/about.fxml

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,60 @@
77
<?import javafx.scene.image.Image?>
88
<?import javafx.scene.image.ImageView?>
99
<?import javafx.scene.layout.AnchorPane?>
10+
<?import javafx.scene.layout.HBox?>
11+
<?import javafx.scene.layout.VBox?>
1012
<?import javafx.scene.text.Font?>
11-
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="377.0" prefWidth="400.0" style="-fx-font-size: 12; -fx-font-family: verdana;" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.github.introfog.gitwave.controller.AboutController">
13+
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="325.0" prefWidth="440.0" style="-fx-font-size: 12; -fx-font-family: verdana;" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.github.introfog.gitwave.controller.AboutController">
1214
<children>
1315
<ImageView fitHeight="80.0" fitWidth="80.0" layoutX="32.0" layoutY="40.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
1416
<image>
1517
<Image url="@../../../../../logo256.png" />
1618
</image></ImageView>
17-
<Button layoutX="294.0" layoutY="292.0" mnemonicParsing="false" onAction="#close" text="Close" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0" />
18-
<Label fx:id="version" layoutX="134.0" layoutY="40.0" text="VERSION" AnchorPane.leftAnchor="100.0" AnchorPane.topAnchor="20.0">
19-
<graphic>
20-
<Label text="GitWave">
19+
<VBox prefWidth="100.0" AnchorPane.leftAnchor="100.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
20+
<children>
21+
<Label fx:id="version" text="VERSION">
22+
<graphic>
23+
<Label text="GitWave">
24+
<font>
25+
<Font name="Verdana Bold" size="14.0" />
26+
</font>
27+
</Label>
28+
</graphic>
2129
<font>
22-
<Font name="System Bold" size="14.0" />
30+
<Font name="Verdana Bold" size="14.0" />
2331
</font>
32+
<VBox.margin>
33+
<Insets top="20.0" />
34+
</VBox.margin>
2435
</Label>
25-
</graphic>
26-
<font>
27-
<Font name="Verdana Bold" size="14.0" />
28-
</font></Label>
29-
<Label layoutX="134.0" layoutY="72.0" prefHeight="142.0" prefWidth="236.0" text="GitWave is the ultimate tool for developers who work with multiple repositories on Windows. The app is designed to streamline your workflow by allowing you to run any bash commands across several repositories simultaneously. It’s a powerful companion for any developer looking to save time and effort when managing their Git projects." wrapText="true" AnchorPane.leftAnchor="100.0" AnchorPane.rightAnchor="0.0" />
30-
<Label layoutX="134.0" layoutY="233.0" prefHeight="39.0" prefWidth="236.0" text="GitWave is a open source project, which you can find on" wrapText="true" AnchorPane.leftAnchor="100.0" AnchorPane.rightAnchor="0.0" />
31-
<Hyperlink layoutX="193.0" layoutY="251.0" onAction="#openGitHub" prefHeight="12.0" prefWidth="46.0" text="GitHub" AnchorPane.leftAnchor="193.0" AnchorPane.rightAnchor="0.0" />
32-
<Label layoutX="133.0" layoutY="293.0" text="Copyright 2023-2024 Dmitry Chubrick" AnchorPane.leftAnchor="100.0" />
36+
<Label text="GitWave is the ultimate tool for developers who work with multiple repositories. The app is designed to streamline your workflow by allowing you to run any bash commands across several repositories simultaneously. It’s a powerful companion for any developer looking to save time and effort when managing their Git projects." wrapText="true">
37+
<VBox.margin>
38+
<Insets top="10.0" />
39+
</VBox.margin>
40+
</Label>
41+
<HBox>
42+
<children>
43+
<Label text="GitWave is a open source project:" wrapText="true">
44+
<HBox.margin>
45+
<Insets />
46+
</HBox.margin>
47+
</Label>
48+
<Hyperlink focusTraversable="false" onAction="#openGitHub" text="GitHub">
49+
<HBox.margin>
50+
<Insets top="-3.0" />
51+
</HBox.margin></Hyperlink>
52+
</children>
53+
<VBox.margin>
54+
<Insets top="10.0" />
55+
</VBox.margin>
56+
</HBox>
57+
<Label text="Copyright 2023-2024 Dmitry Chubrick">
58+
<VBox.margin>
59+
<Insets top="10.0" />
60+
</VBox.margin></Label>
61+
</children>
62+
</VBox>
63+
<Button mnemonicParsing="false" onAction="#close" text="Close" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="147.0" />
3364
</children>
3465
<padding>
3566
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />

src/main/resources/com/github/introfog/gitwave/view/main.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
115115
</columnResizePolicy>
116116
</TableView>
117-
<Label fx:id="parametersText" layoutX="28.0" layoutY="14.0" prefHeight="50.0" prefWidth="418.0" text="Current command doesn't define any parameters. Enter your parameter in the format {parameterName}. Ensure that parameterName is not empty and doesn't contain spaces." wrapText="true" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="20.0" />
117+
<Label fx:id="parametersText" layoutX="28.0" layoutY="14.0" prefWidth="418.0" text="Current command doesn't define any parameters. Enter your parameter in the format {parameterName}. Ensure that parameterName is not empty and doesn't contain spaces." wrapText="true" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0" AnchorPane.topAnchor="20.0" />
118118
</children></AnchorPane>
119119
</content>
120120
</Tab>

0 commit comments

Comments
 (0)