Fix FXML errors and make Analytics accessible to all users
This commit is contained in:
@@ -32,6 +32,17 @@
|
||||
</Label>
|
||||
<Separator prefWidth="200.0" style="-fx-background-color: #444444; -fx-opacity: 0.35;" />
|
||||
|
||||
<Button fx:id="btnAnalytics" alignment="CENTER_LEFT" mnemonicParsing="false" onAction="#btnAnalyticsClicked" prefWidth="250.0" style="-fx-background-color: transparent; -fx-background-radius: 10; -fx-cursor: hand; -fx-focus-color: transparent; -fx-faint-focus-color: transparent;" text="Analytics" textFill="#cbd5e1">
|
||||
<font>
|
||||
<Font name="System" size="13.0" />
|
||||
</font>
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="14.0" right="14.0" top="10.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
|
||||
<Separator prefWidth="200.0" style="-fx-background-color: #444444; -fx-opacity: 0.35;" />
|
||||
|
||||
<Label text="PETS" textFill="#94a3b8">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
@@ -143,15 +154,6 @@
|
||||
</padding>
|
||||
</Button>
|
||||
|
||||
<Button fx:id="btnAnalytics" alignment="CENTER_LEFT" mnemonicParsing="false" onAction="#btnAnalyticsClicked" prefWidth="250.0" style="-fx-background-color: transparent; -fx-background-radius: 10; -fx-cursor: hand; -fx-focus-color: transparent; -fx-faint-focus-color: transparent;" text="Analytics" textFill="#cbd5e1">
|
||||
<font>
|
||||
<Font name="System" size="13.0" />
|
||||
</font>
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="14.0" right="14.0" top="10.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
|
||||
<Region VBox.vgrow="ALWAYS" />
|
||||
|
||||
<Button fx:id="btnLogout" alignment="CENTER_LEFT" mnemonicParsing="false" onAction="#btnLogoutClicked" prefWidth="250.0" style="-fx-background-color: rgba(255,255,255,0.08); -fx-background-radius: 10; -fx-cursor: hand; -fx-focus-color: transparent; -fx-faint-focus-color: transparent;" text="Logout" textFill="#e2e8f0">
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<CategoryAxis label="Date" side="BOTTOM" />
|
||||
</xAxis>
|
||||
<yAxis>
|
||||
<NumberAxis label="Revenue ($)" side="LEFT" />
|
||||
<NumberAxis label="Revenue" side="LEFT" />
|
||||
</yAxis>
|
||||
</LineChart>
|
||||
</VBox>
|
||||
@@ -138,7 +138,7 @@
|
||||
</Label>
|
||||
<BarChart fx:id="chartTopRevenue" animated="true" legendSide="BOTTOM" prefHeight="300.0">
|
||||
<xAxis>
|
||||
<NumberAxis label="Revenue ($)" side="BOTTOM" />
|
||||
<NumberAxis label="Revenue" side="BOTTOM" />
|
||||
</xAxis>
|
||||
<yAxis>
|
||||
<CategoryAxis label="Product" side="LEFT" />
|
||||
@@ -193,7 +193,7 @@
|
||||
<CategoryAxis label="Employee" side="BOTTOM" />
|
||||
</xAxis>
|
||||
<yAxis>
|
||||
<NumberAxis label="Revenue ($)" side="LEFT" />
|
||||
<NumberAxis label="Revenue" side="LEFT" />
|
||||
</yAxis>
|
||||
</BarChart>
|
||||
</VBox>
|
||||
|
||||
Reference in New Issue
Block a user