Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ui/src/main/java/edu/wpi/grip/ui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.text.Font;
import javafx.stage.Stage;

import javax.inject.Inject;
Expand Down Expand Up @@ -72,6 +73,12 @@ public void start(Stage stage) throws Exception {
injector = Guice.createInjector(Modules.override(new GRIPCoreModule(), new GRIPNetworkModule(), new GRIPSourcesHardwareModule()).with(new GRIPUIModule()));
injector.injectMembers(this);

System.setProperty("prism.lcdtext", "false");
Font.loadFont(this.getClass().getResource("roboto/Roboto-Regular.ttf").openStream(), -1);
Font.loadFont(this.getClass().getResource("roboto/Roboto-Bold.ttf").openStream(), -1);
Font.loadFont(this.getClass().getResource("roboto/Roboto-Italic.ttf").openStream(), -1);
Font.loadFont(this.getClass().getResource("roboto/Roboto-BoldItalic.ttf").openStream(), -1);

root = FXMLLoader.load(Main.class.getResource("MainWindow.fxml"), null, null, injector::getInstance);
root.setStyle("-fx-font-size: " + DPIUtility.FONT_SIZE + "px");

Expand Down
1 change: 0 additions & 1 deletion ui/src/main/resources/edu/wpi/grip/ui/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
<fx:include source="Deploy.fxml" fx:id="deployPane"/>
</fx:define>
<stylesheets>
<URL value="@roboto/Roboto.css"/>
<URL value="@GRIP.css"/>
</stylesheets>
</VBox>
Expand Down
27 changes: 0 additions & 27 deletions ui/src/main/resources/edu/wpi/grip/ui/roboto/Roboto.css

This file was deleted.