+ " 960h-832v-704h832v704z", null); ((SVGGlyph) arrow).setFill(jfxDatePicker.getDefaultColor()); ((SVGGlyph) arrow).setSize(20, 20); arrowButton.getChildren().setAll(arrow); ((JFXTextField) getEditor()).setFocusColor(jfxDatePicker.getDefaultColor());
@Override protected void handleControlPropertyChanged(String p) { if ("DEFAULT_COLOR".equals(p)) { ((JFXTextField) getEditor()).setFocusColor(jfxDatePicker.getDefaultColor()); } else if ("DAY_CELL_FACTORY".equals(p)) { updateDisplayNode();
headerPanel.setBackground(new Background(new BackgroundFill(this.datePicker.getDefaultColor(), CornerRadii.EMPTY, Insets.EMPTY)));
dayCell.setTextFill(this.datePicker.getDefaultColor()); dayCell.getStyleClass().add("today"); dayCell.setTextFill(Color.WHITE); dayCell.setBackground( new Background(new BackgroundFill(this.datePicker.getDefaultColor(), new CornerRadii(40), Insets.EMPTY)));
backMonthButton.getStyleClass().add("left-button"); backMonthButton.setGraphic(leftChevron); backMonthButton.setRipplerFill(this.datePicker.getDefaultColor()); backMonthButton.setOnAction(t -> forward(-1, MONTHS, false, true)); forwardMonthButton.getStyleClass().add("right-button"); forwardMonthButton.setGraphic(rightChevron); forwardMonthButton.setRipplerFill(this.datePicker.getDefaultColor()); forwardMonthButton.setOnAction(t -> forward(1, MONTHS, false, true));
newVal.setTextFill(datePicker.getDefaultColor());
private void updateArrow(JFXDatePicker datePicker) { ((Region) arrowButton.getChildren().get(0)).setBackground(new Background( new BackgroundFill(datePicker.getDefaultColor(), null, null))); ((JFXTextField) getEditor()).setFocusColor(jfxDatePicker.getDefaultColor()); }
headerPanel.setBackground(new Background(new BackgroundFill(this.datePicker.getDefaultColor(), CornerRadii.EMPTY, Insets.EMPTY)));
dayCell.setTextFill(this.datePicker.getDefaultColor()); dayCell.getStyleClass().add("today"); dayCell.setTextFill(Color.WHITE); dayCell.setBackground( new Background(new BackgroundFill(this.datePicker.getDefaultColor(), new CornerRadii(40), Insets.EMPTY)));
backMonthButton.getStyleClass().add("left-button"); backMonthButton.setGraphic(leftChevron); backMonthButton.setRipplerFill(this.datePicker.getDefaultColor()); backMonthButton.setOnAction(t -> forward(-1, MONTHS, false, true)); forwardMonthButton.getStyleClass().add("right-button"); forwardMonthButton.setGraphic(rightChevron); forwardMonthButton.setRipplerFill(this.datePicker.getDefaultColor()); forwardMonthButton.setOnAction(t -> forward(1, MONTHS, false, true));
((JFXTextField) getEditor()).setFocusColor(jfxDatePicker.getDefaultColor());
newVal.setTextFill(datePicker.getDefaultColor());