|
@@ -1,3 +1,21 @@
|
|
|
+/*
|
|
|
+ * Copyright (C) 2021 Parisi Alessandro
|
|
|
+ * This file is part of MaterialFX (https://github.com/palexdev/MaterialFX).
|
|
|
+ *
|
|
|
+ * MaterialFX is free software: you can redistribute it and/or modify
|
|
|
+ * it under the terms of the GNU General Public License as published by
|
|
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
|
+ * (at your option) any later version.
|
|
|
+ *
|
|
|
+ * MaterialFX is distributed in the hope that it will be useful,
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ * GNU General Public License for more details.
|
|
|
+ *
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
+ * along with MaterialFX. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+ */
|
|
|
+
|
|
|
package io.github.palexdev.materialfx.controls;
|
|
|
|
|
|
import io.github.palexdev.materialfx.MFXResourcesLoader;
|
|
@@ -87,7 +105,7 @@ public class MFXDatePicker extends VBox {
|
|
|
value.setMinWidth(64);
|
|
|
calendar = new MFXFontIcon("mfx-calendar-semi-black");
|
|
|
calendar.getStyleClass().add("calendar-icon");
|
|
|
- calendar.setColor((Color) getPickerColor());
|
|
|
+ calendar.setColor(getPickerColor());
|
|
|
calendar.setSize(20);
|
|
|
StackPane pane = new StackPane(value, calendar);
|
|
|
pane.setAlignment(Pos.BOTTOM_LEFT);
|
|
@@ -193,7 +211,7 @@ public class MFXDatePicker extends VBox {
|
|
|
calendar.setColor(Color.LIGHTGRAY);
|
|
|
} else {
|
|
|
line.setStroke(getLineColor());
|
|
|
- calendar.setColor((Color) getPickerColor());
|
|
|
+ calendar.setColor(getPickerColor());
|
|
|
}
|
|
|
});
|
|
|
}
|