Fix: better ui for displaying progress of project download
This commit is contained in:
@@ -69,6 +69,7 @@ import java.util.TimerTask;
|
||||
public class GuiSwing extends JFrame implements Gui {
|
||||
public static final String type = "swing";
|
||||
private static final String logoPath = "/sheepit-logo.png";
|
||||
public static final int WIDTH = 540;
|
||||
|
||||
public static void drawVersionStringOnImage(final BufferedImage image, String versionString) {
|
||||
var watermarkWidth = image.getWidth();
|
||||
@@ -189,7 +190,7 @@ public class GuiSwing extends JFrame implements Gui {
|
||||
}
|
||||
|
||||
setTitle(title);
|
||||
setSize(520, 760);
|
||||
setSize(WIDTH, 760);
|
||||
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
|
||||
@@ -541,7 +541,7 @@ public class Settings implements Activity {
|
||||
parent.getContentPanel().add(savePanel, constraints);
|
||||
|
||||
// Increase the size of the app Window to ensure it shows all the information with the Advanced Options panel opened.
|
||||
parent.setSize(520,850);
|
||||
parent.setSize(GuiSwing.WIDTH, 850);
|
||||
|
||||
if (haveAutoStarted == false && config.isAutoSignIn() && checkDisplaySaveButton()) {
|
||||
// auto start
|
||||
|
||||
@@ -298,7 +298,7 @@ public class Working implements Activity {
|
||||
parent.getContentPanel().add(buttonsPanel, global_constraints);
|
||||
|
||||
// Set the proper size for the Working (if coming from Settings screen, the window size will be too big for the content!)
|
||||
parent.setSize(520, 820);
|
||||
parent.setSize(GuiSwing.WIDTH, 820);
|
||||
}
|
||||
|
||||
public void resizeWindow() {
|
||||
@@ -306,7 +306,7 @@ public class Working implements Activity {
|
||||
parent.repaint();
|
||||
|
||||
// Calculate the proper size based on the status of the panels (opened/collapsed)
|
||||
parent.setSize(520, (int) (session_info_panel.getHeight() + global_stats_panel.getHeight() + last_frame_panel.getHeight()) + 400);
|
||||
parent.setSize(GuiSwing.WIDTH, (int) (session_info_panel.getHeight() + global_stats_panel.getHeight() + last_frame_panel.getHeight()) + 400);
|
||||
}
|
||||
|
||||
public void setStatus(String msg_) {
|
||||
|
||||
Reference in New Issue
Block a user