fixed bar chart colour, added now time to scrobble pane

This commit is contained in:
aj 2019-08-21 11:15:33 +01:00
parent 73b74bcee3
commit 48b058030a
3 changed files with 25 additions and 3 deletions

View File

@ -125,6 +125,16 @@ public class ScrobblePaneController {
labelStatus.setText("wrong text");
}
}
@FXML
public void handleNow() {
LocalDateTime date = LocalDateTime.now();
datePicker.setValue(date.toLocalDate());
sliderHour.setValue(date.getHour());
sliderMinute.setValue(date.getMinute());
sliderSecond.setValue(date.getSecond());
}
private boolean validateText() {
String track = textTrack.getText();

View File

@ -26,7 +26,7 @@
}
.chart-bar {
-fx-background-color: #202124;
-fx-background-color: #A2A2A2;
}
.chart-plot-background {

View File

@ -79,13 +79,25 @@
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Button fx:id="buttonScrobble" mnemonicParsing="false" onAction="#handleScrobble" prefHeight="25.0" prefWidth="232.0" text="go" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
<Button fx:id="buttonClear" mnemonicParsing="false" onAction="#handleClear" prefHeight="25.0" prefWidth="232.0" text="clear" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
<Button fx:id="buttonScrobble" mnemonicParsing="false" onAction="#handleScrobble" prefHeight="25.0" prefWidth="232.0" text="go" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</GridPane.margin></Button>
<Button fx:id="buttonClear" mnemonicParsing="false" onAction="#handleClear" prefHeight="25.0" prefWidth="232.0" text="clear" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</GridPane.margin></Button>
<Button fx:id="buttonNow" mnemonicParsing="false" onAction="#handleNow" prefHeight="25.0" prefWidth="232.0" text="now" GridPane.columnIndex="2">
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</GridPane.margin>
</Button>
</children>
</GridPane>
</children>