Don't start osci-render when placeholder is clicked, and add contact me text

pull/98/head
James Ball 2022-07-06 16:37:43 +01:00 zatwierdzone przez James H Ball
rodzic 655f2ee90a
commit b6ab8af58b
3 zmienionych plików z 15 dodań i 7 usunięć

Wyświetl plik

@ -62,7 +62,10 @@ public class ProjectSelectController implements Initializable {
recentFilesListView.setItems(recentFiles); recentFilesListView.setItems(recentFiles);
recentFilesListView.setOnMouseClicked(e -> { recentFilesListView.setOnMouseClicked(e -> {
try { try {
launchMainApplication.accept(recentFilesListView.getSelectionModel().getSelectedItem(), startMutedCheckBox.isSelected()); String selectedItem = recentFilesListView.getSelectionModel().getSelectedItem();
if (selectedItem != null) {
launchMainApplication.accept(selectedItem, startMutedCheckBox.isSelected());
}
} catch (Exception ex) { } catch (Exception ex) {
logger.log(Level.SEVERE, ex.getMessage(), ex); logger.log(Level.SEVERE, ex.getMessage(), ex);
} }

Wyświetl plik

@ -14,19 +14,19 @@
<AnchorPane prefHeight="752.0" prefWidth="1008.0" stylesheets="@../css/main.css" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sh.ball.gui.controller.ProjectSelectController"> <AnchorPane prefHeight="752.0" prefWidth="1008.0" stylesheets="@../css/main.css" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sh.ball.gui.controller.ProjectSelectController">
<AnchorPane layoutX="11.0" layoutY="12.0" prefHeight="727.0" prefWidth="984.0" styleClass="darkPane"> <AnchorPane layoutX="11.0" layoutY="12.0" prefHeight="727.0" prefWidth="984.0" styleClass="darkPane">
<children> <children>
<ImageView fitHeight="247.0" fitWidth="252.0" layoutX="162.0" layoutY="15.0" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="247.0" fitWidth="252.0" layoutX="162.0" layoutY="3.0" pickOnBounds="true" preserveRatio="true">
<image> <image>
<Image url="@../images/osci.png" /> <Image url="@../images/osci.png" />
</image> </image>
</ImageView> </ImageView>
<ListView fx:id="recentFilesListView" layoutX="28.0" layoutY="333.0" prefHeight="257.0" prefWidth="527.0" styleClass="darkPane" > <ListView fx:id="recentFilesListView" layoutX="28.0" layoutY="286.0" prefHeight="257.0" prefWidth="527.0" styleClass="darkPane">
<placeholder> <placeholder>
<Label text="No recent projects. Start a new project below." /> <Label text="No recent projects. Start a new project below." />
</placeholder> </placeholder>
</ListView> </ListView>
<Button fx:id="newProjectButton" layoutX="222.0" layoutY="609.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="131.0" text="Start new project" /> <Button fx:id="newProjectButton" layoutX="222.0" layoutY="562.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="131.0" text="Start new project" />
<CheckBox fx:id="startMutedCheckBox" layoutX="240.0" layoutY="670.0" mnemonicParsing="false" text="Start muted" /> <CheckBox fx:id="startMutedCheckBox" layoutX="240.0" layoutY="623.0" mnemonicParsing="false" text="Start muted" />
<Label layoutX="188.0" layoutY="294.0" styleClass="title" text="Recently opened projects" /> <Label layoutX="188.0" layoutY="247.0" styleClass="title" text="Recently opened projects" />
<Label layoutX="14.0" layoutY="700.0" text="v1.26.4" /> <Label layoutX="14.0" layoutY="700.0" text="v1.26.4" />
<Label layoutX="727.0" layoutY="20.0" styleClass="title" text="Changelog" /> <Label layoutX="727.0" layoutY="20.0" styleClass="title" text="Changelog" />
<AnchorPane layoutX="582.0" layoutY="65.0" prefHeight="200.0" prefWidth="376.0"> <AnchorPane layoutX="582.0" layoutY="65.0" prefHeight="200.0" prefWidth="376.0">
@ -41,5 +41,6 @@
<String fx:value="darkPane" /> <String fx:value="darkPane" />
</styleClass> </styleClass>
</AnchorPane> </AnchorPane>
<Label layoutX="108.0" layoutY="679.0" prefHeight="40.0" prefWidth="379.0" text="Email me at james@ball.sh or create an issue on GitHub for feature suggestions, issues, or opportunites I might be interested in!" textAlignment="CENTER" wrapText="true" />
</children></AnchorPane> </children></AnchorPane>
</AnchorPane> </AnchorPane>

Wyświetl plik

@ -8,11 +8,15 @@
background-color: #111111; background-color: #111111;
color: white; color: white;
font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif; font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif;
margin: 0 0.5em 0 0; margin: 0 1em 0 0;
font-size: 0.8em; font-size: 0.8em;
padding: 0; padding: 0;
} }
a:link, a:visited, a:hover, a:active {
color: #00ff00;
}
ul { ul {
margin-left: 0; margin-left: 0;
padding-left: 2em; padding-left: 2em;