#17 melkein valmis, vaatii vielä testaamista

This commit is contained in:
2026-05-13 01:56:21 +03:00
parent 71b06ff075
commit 9cc55be771
8 changed files with 136 additions and 30 deletions
+7 -4
View File
@@ -26,8 +26,8 @@ public class App extends Application {
TabPane root = new TabPane();
root.setSide(Side.LEFT);
root.setTabMinWidth(50);
root.setTabMinHeight(35);
root.setTabMaxHeight(50);
root.setTabMinHeight(Double.parseDouble(Main.properties.getProperty("buttonFonttiKoko"))*2);
root.setTabMaxHeight(Double.parseDouble(Main.properties.getProperty("buttonFonttiKoko"))*2);
Tab asiakasHallinta, kierrostenHallinta, kuljetusListat, kuljetetut, asetukset;
asiakasHallinta = new Tab("Asiakashallinta", new Asiakashallinta());
@@ -49,7 +49,10 @@ public class App extends Application {
for (Tab tab : root.getTabs()) {
tab.setClosable(false);
tab.setStyle("-fx-font-size: 18px; -fx-font-weight: bold; -fx-font-family: Open Sans");
tab.setStyle(
"-fx-font-size: " + Main.properties.getProperty("buttonFonttiKoko") + "px;" +
" -fx-font-weight: bold;" +
" -fx-font-family: " + Main.properties.getProperty("buttonFontti"));
}
Scene scene = new Scene(root);
@@ -65,6 +68,6 @@ public class App extends Application {
primaryStage.show();
primaryStage.getIcons().add(new Image(Objects.requireNonNull(Main.class.getClassLoader().getResourceAsStream("kuljetusruokalaatikko.jpg"))));
if (!Main.properties.getProperty("version").equals(Main.properties.getProperty("viimeisinVersio"))) new MuutosIlmoitus();
if (!Main.properties.getProperty("version").equals(Main.properties.getProperty("viimeisinVersio", "0.0.0"))) new MuutosIlmoitus();
}
}