#17 Luotu custom label luokka, otettu uudet säädöt käyttöön mahdollisimman monessa paikkaa

This commit is contained in:
2026-05-13 02:22:14 +03:00
parent 9cc55be771
commit 89d30b8ac9
7 changed files with 48 additions and 34 deletions
@@ -18,10 +18,12 @@ public class TabPohja extends StackPane {
public static String oletusStyle;
public static Font buttonFont;
public static Font tekstiFont;
public static double spacing;
public TabPohja() {
Properties prop = Main.properties;
oletusInsets = new Insets(Double.parseDouble(prop.getProperty("insets")));
spacing = Double.parseDouble(prop.getProperty("insets"));
oletusStyle = "-fx-background-color: " + prop.getProperty("taustaVari") + ";";
buttonFont = Font.font(prop.getProperty("buttonFontti"), FontWeight.BOLD, Double.parseDouble(prop.getProperty("buttonFonttiKoko")));
tekstiFont = Font.font(prop.getProperty("tekstiFontti"), FontWeight.NORMAL, Double.parseDouble(prop.getProperty("tekstiFonttiKoko")));