Define initial Scene dimensions in Layout fields

Also moved initial offer table view's height into reusable field.
This commit is contained in:
author 2018-02-27 12:45:39 -03:00
parent 0bbb487d9c
commit cbf330461d
2 changed files with 6 additions and 1 deletions

View File

@ -96,6 +96,9 @@ import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import static io.bisq.gui.util.Layout.INITIAL_SCENE_HEIGHT;
import static io.bisq.gui.util.Layout.INITIAL_SCENE_WIDTH;
public class BisqApp extends Application {
private static final Logger log = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(BisqApp.class);
@ -230,7 +233,7 @@ public class BisqApp extends Application {
mainView = (MainView) viewLoader.load(MainView.class);
mainView.setPersistedFilesCorrupted(corruptedDatabaseFiles);
scene = new Scene(mainView.getRoot(), 1200, 710); //740
scene = new Scene(mainView.getRoot(), INITIAL_SCENE_WIDTH, INITIAL_SCENE_HEIGHT);
Font.loadFont(getClass().getResource("/fonts/Verdana.ttf").toExternalForm(), 13);
Font.loadFont(getClass().getResource("/fonts/VerdanaBold.ttf").toExternalForm(), 13);

View File

@ -18,6 +18,8 @@
package io.bisq.gui.util;
public class Layout {
public static final double INITIAL_SCENE_WIDTH = 1200;
public static final double INITIAL_SCENE_HEIGHT = 710; //740
public static final double FIRST_ROW_DISTANCE = 20d;
public static final double GROUP_DISTANCE = 40d;
public static final double FIRST_ROW_AND_GROUP_DISTANCE = GROUP_DISTANCE + FIRST_ROW_DISTANCE;