Skip to content

Commit

Permalink
Small modifications to the look of printing area.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtrex committed Aug 28, 2018
1 parent 6f0ca01 commit 346939f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/com/rweqx/styles/print-summary.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.title-label{
-fx-font-size: 16;
-fx-font-weight: bold;
-fx-alignment:center;
}

.field-label{
Expand Down
8 changes: 5 additions & 3 deletions src/com/rweqx/ui/print-summary-table.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<VBox alignment="CENTER" xmlns="http://javafx.com/javafx/8.0.121" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.rweqx.controller.PrintSummaryTemplateController">
<VBox alignment="CENTER" prefHeight="283.0" prefWidth="577.0" xmlns="http://javafx.com/javafx/8.0.121" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.rweqx.controller.PrintSummaryTemplateController">
<children>
<VBox fx:id="contentPane" spacing="5.0" stylesheets="@../styles/print-summary.css">
<children>
Expand All @@ -31,7 +31,8 @@
<Label fx:id="lInvoicePeriod" styleClass="field-label" text="Label" />
</children>
</HBox>
<AnchorPane prefHeight="400.0" prefWidth="600.0">
<Pane prefHeight="20.0" />
<AnchorPane>
<children>
<GridPane fx:id="eventsGrid" alignment="CENTER" hgap="5.0" vgap="5.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<columnConstraints>
Expand All @@ -45,7 +46,7 @@
<RowConstraints minHeight="10.0" prefHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="title-label" text="Amount" GridPane.columnIndex="4" GridPane.halignment="CENTER" />
<Label styleClass="title-label" text="Amount" GridPane.columnIndex="4" GridPane.halignment="RIGHT" />
<Label styleClass="title-label" text="Rate" GridPane.columnIndex="3" GridPane.halignment="CENTER" />
<Label styleClass="title-label" text="Hours" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
<Label styleClass="title-label" text="Description" GridPane.columnIndex="1" GridPane.halignment="CENTER" />
Expand All @@ -61,6 +62,7 @@
<Label fx:id="lTotal" alignment="CENTER_RIGHT" prefWidth="100.0" styleClass="field-label" text="Label" />
</children>
</HBox>
<Pane VBox.vgrow="ALWAYS" />
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
Expand Down

0 comments on commit 346939f

Please sign in to comment.