mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Define initial Scene dimensions in Layout fields
Also moved initial offer table view's height into reusable field.
This commit is contained in:
parent
0bbb487d9c
commit
cbf330461d
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user