fixed bar chart colour, added now time to scrobble pane
This commit is contained in:
parent
73b74bcee3
commit
48b058030a
@ -126,6 +126,16 @@ public class ScrobblePaneController {
|
||||
}
|
||||
}
|
||||
|
||||
@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();
|
||||
String album = textAlbum.getText();
|
||||
|
@ -26,7 +26,7 @@
|
||||
}
|
||||
|
||||
.chart-bar {
|
||||
-fx-background-color: #202124;
|
||||
-fx-background-color: #A2A2A2;
|
||||
}
|
||||
|
||||
.chart-plot-background {
|
||||
|
@ -77,6 +77,7 @@
|
||||
<Label fx:id="labelStatus" GridPane.halignment="CENTER" GridPane.rowIndex="9" />
|
||||
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="9">
|
||||
<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>
|
||||
@ -84,8 +85,19 @@
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user