Yhtenäinen TV_COLUMN_STYLE

Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
2026-05-31 14:18:15 +03:00
parent 0634e8a13b
commit 127c9d671b
5 changed files with 10 additions and 17 deletions
@@ -17,6 +17,7 @@ public class TabPohja extends Tab {
public static Insets INSETS;
public static Border BORDER = new Border(new BorderStroke(Color.BLACK, BorderStrokeStyle.SOLID, new CornerRadii(5), BorderWidths.DEFAULT));
public static String STYLE;
public static String TV_COLUMN_STYLE;
public static Font BUTTON_FONT;
public static Font TEKSTI_FONT;
public static double SPACING;
@@ -29,6 +30,10 @@ public class TabPohja extends Tab {
INSETS = new Insets(Double.parseDouble(prop.getProperty("insets")));
SPACING = Double.parseDouble(prop.getProperty("insets"));
STYLE = "-fx-background-color: " + prop.getProperty("taustaVari");
TV_COLUMN_STYLE =
"-fx-alignment: CENTER;" +
"-fx-font-size: " + Main.properties.getProperty("tekstiFonttiKoko") + "px;" +
"-fx-font-family: " + Main.properties.getProperty("tekstiFontti");
BUTTON_FONT = Font.font(prop.getProperty("buttonFontti"), FontWeight.BOLD, Double.parseDouble(prop.getProperty("buttonFonttiKoko")));
TEKSTI_FONT = Font.font(prop.getProperty("tekstiFontti"), FontWeight.NORMAL, Double.parseDouble(prop.getProperty("tekstiFonttiKoko")));