|
@@ -60,7 +60,7 @@ public class CalcSkin extends Application {
|
60
|
60
|
private VBox createLayout(TextField screen, TilePane buttons) {
|
61
|
61
|
final VBox layout = new VBox(20);
|
62
|
62
|
layout.setAlignment(Pos.CENTER);
|
63
|
|
- layout.setStyle("-fx-background-color: silver; -fx-padding: 20; -fx-font-size: 20;");
|
|
63
|
+ layout.setStyle("-fx-background-color: #6c1d45; -fx-padding: 20; -fx-font-size: 20;");
|
64
|
64
|
layout.getChildren().setAll(screen, buttons);
|
65
|
65
|
handleAccelerators(layout);
|
66
|
66
|
screen.prefWidthProperty().bind(buttons.widthProperty());
|
|
@@ -81,7 +81,7 @@ public class CalcSkin extends Application {
|
81
|
81
|
|
82
|
82
|
private TextField createScreen() {
|
83
|
83
|
final TextField screen = new TextField();
|
84
|
|
- screen.setStyle("-fx-background-color: aquamarine;");
|
|
84
|
+ screen.setStyle("-fx-background-color: #a39382");
|
85
|
85
|
screen.setAlignment(Pos.CENTER_RIGHT);
|
86
|
86
|
screen.setEditable(false);
|
87
|
87
|
screen.textProperty().bind(Bindings.format("%.0f", currentValue));
|
|
@@ -143,7 +143,7 @@ public class CalcSkin extends Application {
|
143
|
143
|
|
144
|
144
|
private Button makeStandardButton(String s) {
|
145
|
145
|
Button button = new Button(s);
|
146
|
|
- button.setStyle("-fx-base: beige;");
|
|
146
|
+ button.setStyle("-fx-base: #002855");
|
147
|
147
|
accelerators.put(s, button);
|
148
|
148
|
button.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
|
149
|
149
|
return button;
|
|
@@ -166,7 +166,7 @@ public class CalcSkin extends Application {
|
166
|
166
|
}
|
167
|
167
|
|
168
|
168
|
private void makeClearButton(Button button) {
|
169
|
|
- button.setStyle("-fx-base: mistyrose;");
|
|
169
|
+ button.setStyle("-fx-base: #36573b");
|
170
|
170
|
button.setOnAction(new EventHandler<ActionEvent>() {
|
171
|
171
|
@Override
|
172
|
172
|
public void handle(ActionEvent actionEvent) {
|