Skip to content

Commit

Permalink
Added check box color field to MainPage css, removed MaintenancePage'…
Browse files Browse the repository at this point in the history
…s solo css file (Changes color of the list's scrollbar from blue to white), and removed the manual setStyle from LocationSearcher (#466)
  • Loading branch information
Sprowe authored May 7, 2021
1 parent ef244af commit 2a09c35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/main/java/edu/wpi/teamo/views/LocationSearcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public JFXCheckBox makeCheckbox(NodeInfo node, boolean isSelected) {
JFXCheckBox checkBox = new JFXCheckBox();
checkBox.setPadding(new Insets(10));
checkBox.setSelected(isSelected);
checkBox.setStyle("-jfx-checked-color: #5e81ac");
checkBox.setText(text);

checkBox.setOnAction(event -> {
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/edu/wpi/teamo/fxml/CSS/MainPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
-fx-padding: 8;
}

.jfx-check-box{
-jfx-checked-color: #5e81ac
}


.tree-table-view{
-fx-font: 12px "Arial";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<?import com.jfoenix.controls.JFXComboBox?>
<?import com.jfoenix.controls.JFXListView?>
<?import com.jfoenix.controls.JFXTextField?>
<?import java.net.URL?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
Expand All @@ -18,7 +17,7 @@
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<StackPane fx:id="stackPane" stylesheets="@CSS/MaintenancePage.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="edu.wpi.teamo.views.SR12_MaintenancePage">
<StackPane fx:id="stackPane" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="edu.wpi.teamo.views.SR12_MaintenancePage">
<children>
<GridPane prefHeight="576.0" prefWidth="738.0">
<columnConstraints>
Expand All @@ -32,7 +31,7 @@
<RowConstraints maxHeight="143.0" minHeight="0.0" prefHeight="0.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<BorderPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="576.0" prefWidth="544.0" styleClass="pane" GridPane.columnIndex="1" GridPane.rowIndex="1">
<BorderPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="576.0" prefWidth="544.0" styleClass="pane" stylesheets="@CSS/MainPage.css" GridPane.columnIndex="1" GridPane.rowIndex="1">
<center>
<VBox maxHeight="1.7976931348623157E308" minWidth="-Infinity" prefHeight="396.0" prefWidth="675.0" BorderPane.alignment="TOP_CENTER">
<children>
Expand Down Expand Up @@ -189,10 +188,6 @@
</BorderPane.margin>
</VBox>
</top>
<stylesheets>
<URL value="@CSS/MainPage.css" />
<URL value="@CSS/MaintenancePage.css" />
</stylesheets>
</BorderPane>
</children>
</GridPane>
Expand Down

0 comments on commit 2a09c35

Please sign in to comment.