kopia lustrzana https://github.com/jameshball/osci-render
Don't start osci-render when placeholder is clicked, and add contact me text
rodzic
655f2ee90a
commit
b6ab8af58b
|
@ -62,7 +62,10 @@ public class ProjectSelectController implements Initializable {
|
|||
recentFilesListView.setItems(recentFiles);
|
||||
recentFilesListView.setOnMouseClicked(e -> {
|
||||
try {
|
||||
launchMainApplication.accept(recentFilesListView.getSelectionModel().getSelectedItem(), startMutedCheckBox.isSelected());
|
||||
String selectedItem = recentFilesListView.getSelectionModel().getSelectedItem();
|
||||
if (selectedItem != null) {
|
||||
launchMainApplication.accept(selectedItem, startMutedCheckBox.isSelected());
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
logger.log(Level.SEVERE, ex.getMessage(), ex);
|
||||
}
|
||||
|
|
|
@ -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 layoutX="11.0" layoutY="12.0" prefHeight="727.0" prefWidth="984.0" styleClass="darkPane">
|
||||
<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 url="@../images/osci.png" />
|
||||
</image>
|
||||
</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>
|
||||
<Label text="No recent projects. Start a new project below." />
|
||||
</placeholder>
|
||||
</ListView>
|
||||
<Button fx:id="newProjectButton" layoutX="222.0" layoutY="609.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" />
|
||||
<Label layoutX="188.0" layoutY="294.0" styleClass="title" text="Recently opened projects" />
|
||||
<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="623.0" mnemonicParsing="false" text="Start muted" />
|
||||
<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="727.0" layoutY="20.0" styleClass="title" text="Changelog" />
|
||||
<AnchorPane layoutX="582.0" layoutY="65.0" prefHeight="200.0" prefWidth="376.0">
|
||||
|
@ -41,5 +41,6 @@
|
|||
<String fx:value="darkPane" />
|
||||
</styleClass>
|
||||
</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>
|
||||
</AnchorPane>
|
||||
|
|
|
@ -8,11 +8,15 @@
|
|||
background-color: #111111;
|
||||
color: white;
|
||||
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;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
a:link, a:visited, a:hover, a:active {
|
||||
color: #00ff00;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-left: 0;
|
||||
padding-left: 2em;
|
||||
|
|
Ładowanie…
Reference in New Issue