Skip to content

Commit

Permalink
Adding text-area in CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
gravetii committed May 21, 2019
1 parent af4cd16 commit 8c3df90
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected String title() {

@Override
protected Optional<FxDimensions> preferredDimensions() {
FxDimensions dimensions = new FxDimensions(new Dimension2D(550, 400));
FxDimensions dimensions = new FxDimensions(new Dimension2D(550, 350));
return Optional.of(dimensions);
}
}
2 changes: 1 addition & 1 deletion src/main/resources/fxml/gameEndResult.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<VBox prefHeight="520.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.172-ea" xmlns:fx="http://javafx.com/fxml/1">
<children>
<TextArea fx:id="txtArea" editable="false" prefHeight="130.0" prefWidth="300.0" wrapText="true">
<TextArea id="resultBox" fx:id="txtArea" editable="false" prefHeight="150.0" prefWidth="300.0" wrapText="true">
<effect>
<Blend />
</effect></TextArea>
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/theme/css/azure.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import url("common.css");

.custom-button {
-fx-text-fill: #FFFFFF;
-fx-text-fill: #000000;
-fx-background-color: #7FDBFF;
}

Expand All @@ -28,3 +28,7 @@
-fx-background-color: #7FDBFF;
-fx-text-fill: #FFFFFF;
}

.text-area {
-fx-text-fill: #4095C6;
}
6 changes: 5 additions & 1 deletion src/main/resources/theme/css/black_and_white.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@
.text-field {
-fx-background-color: #A9A5A2;
-fx-text-fill: #000000;
}
}

.text-area {
-fx-text-fill: #000000;
}
6 changes: 5 additions & 1 deletion src/main/resources/theme/css/bluezy.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@
.text-field {
-fx-background-color: #3FA7A6;
-fx-text-fill: #000000;
}
}

.text-area {
-fx-text-fill: #5C5D63;
}
31 changes: 21 additions & 10 deletions src/main/resources/theme/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@
-fx-effect: innershadow(gaussian, #164993, 15, 0.5, 0, 0);
}

.text-area {
-fx-focus-color: #D3D3D3;
-fx-text-fill: #000000;
}

.text-area .content {
-fx-background-color: #D3D3D3;
}

.text-area .content .text {
-fx-text-alignment: center;
}
Expand All @@ -93,4 +84,24 @@

.user-table-row-cell .table-cell {
-fx-text-fill: #3EC148 ;
}
}

.text-area {
-fx-focus-color: #FFFFFF;
-fx-font-family: "Helvetica";
-fx-font-size: 16px;
}

.text-area .content {
-fx-background-color: #FFFFFF;
}

#resultBox {
-fx-focus-color: #D3D3D3;
-fx-font-size: 15px;
}

#resultBox .content {
-fx-background-color: #D3D3D3;
}

4 changes: 4 additions & 0 deletions src/main/resources/theme/css/contra.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
-fx-background-color: #C28B86;
-fx-text-fill: #000000;
}

.text-area {
-fx-text-fill: #894343;
}
6 changes: 5 additions & 1 deletion src/main/resources/theme/css/euanthe.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

.custom-button:pressed {
-fx-background-color: #8eae48;
-fx-background-color: #8EAE48;
}

#gamePane {
Expand All @@ -29,3 +29,7 @@
-fx-text-fill: #000000;
}

.text-area {
-fx-text-fill: #A2261A;
}

5 changes: 5 additions & 0 deletions src/main/resources/theme/css/mossy.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@
-fx-background-color: #B4CE73;
-fx-text-fill: #FFFFFF;
}

.text-area {
-fx-text-fill: #006400;
}

4 changes: 4 additions & 0 deletions src/main/resources/theme/css/motley.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
-fx-background-color: #C18D8A;
-fx-text-fill: #FFFFFF;
}

.text-area {
-fx-text-fill: #22748A;
}
4 changes: 4 additions & 0 deletions src/main/resources/theme/css/patchy.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
-fx-background-color: #3BAAA3;
-fx-text-fill: #FFFFFF;
}

.text-area {
-fx-text-fill: #268061;
}
5 changes: 5 additions & 0 deletions src/main/resources/theme/css/sunset.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@
-fx-background-color: #CE6E2A;
-fx-text-fill: #000000;
}

.text-area {
-fx-text-fill: #DD5B1D;
}

4 changes: 4 additions & 0 deletions src/main/resources/theme/css/terra.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
-fx-background-color: #99705B;
-fx-text-fill: #FFFFFF;
}

.text-area {
-fx-text-fill: #85604D;
}
4 changes: 4 additions & 0 deletions src/main/resources/theme/css/verdura.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
-fx-background-color: #5AAE29;
-fx-text-fill: #000000;
}

.text-area {
-fx-text-fill: #4CA120;
}

0 comments on commit 8c3df90

Please sign in to comment.