more refactoring

This commit is contained in:
sirjonasxx 2022-02-13 02:08:49 +01:00
parent 7a7da9835a
commit 33db81a8b5
65 changed files with 116 additions and 146 deletions

View File

@ -12,7 +12,6 @@ import javafx.fxml.FXMLLoader;
import javafx.scene.Parent; import javafx.scene.Parent;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.image.Image; import javafx.scene.image.Image;
import javafx.scene.paint.Color;
import javafx.stage.Stage; import javafx.stage.Stage;
import javafx.stage.StageStyle; import javafx.stage.StageStyle;
@ -90,15 +89,15 @@ public class GEarth extends Application {
GEarth.theme = theme; GEarth.theme = theme;
stage.getScene().getStylesheets().clear(); stage.getScene().getStylesheets().clear();
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", theme)).toExternalForm());
stage.getIcons().clear(); stage.getIcons().clear();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", theme))));
stage.setTitle(theme.split("_")[0] + " " + GEarth.version); stage.setTitle(theme.split("_")[0] + " " + GEarth.version);
titleBar.setTitle(stage.getTitle()); titleBar.setTitle(stage.getTitle());
controller.infoController.img_logo.setImage(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logo.png", theme)))); controller.infoController.img_logo.setImage(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logo.png", theme))));
controller.infoController.version.setText(stage.getTitle()); controller.infoController.version.setText(stage.getTitle());
} }

View File

@ -48,8 +48,8 @@ public class AdminValidator {
Platform.runLater(() -> { Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.WARNING, "G-Earth needs admin privileges in order to work on Flash, please restart G-Earth with admin permissions unless you're using Unity", ButtonType.OK); Alert alert = new Alert(Alert.AlertType.WARNING, "G-Earth needs admin privileges in order to work on Flash, please restart G-Earth with admin permissions unless you're using Unity", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
alert.setResizable(false); alert.setResizable(false);
alert.show(); alert.show();

View File

@ -27,8 +27,8 @@ public class ConfirmationDialog {
// Need to force the alert to layout in order to grab the graphic, // Need to force the alert to layout in order to grab the graphic,
// as we are replacing the dialog pane with a custom pane // as we are replacing the dialog pane with a custom pane
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
alert.getDialogPane().applyCss(); alert.getDialogPane().applyCss();
Node graphic = alert.getDialogPane().getGraphic(); Node graphic = alert.getDialogPane().getGraphic();
// Create a new dialog pane that has a checkbox instead of the hide/show details button // Create a new dialog pane that has a checkbox instead of the hide/show details button

View File

@ -38,8 +38,8 @@ public class UpdateChecker {
Alert alert = new Alert(isForcedUpdate ? Alert.AlertType.ERROR : Alert.AlertType.INFORMATION, "G-Earth is outdated!", ButtonType.OK); Alert alert = new Alert(isForcedUpdate ? Alert.AlertType.ERROR : Alert.AlertType.INFORMATION, "G-Earth is outdated!", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
FlowPane fp = new FlowPane(); FlowPane fp = new FlowPane();
Label lbl = new Label("A new version of G-Earth has been found ("+gitv+")" + System.lineSeparator()+ System.lineSeparator() + "Update to the latest version:"); Label lbl = new Label("A new version of G-Earth has been found ("+gitv+")" + System.lineSeparator()+ System.lineSeparator() + "Update to the latest version:");

View File

@ -109,8 +109,8 @@ public class ProxyProviderFactory {
"Due to current limitations you can only connect one session per hotel to G-Earth in Raw IP mode on Windows.\n\n" + "Due to current limitations you can only connect one session per hotel to G-Earth in Raw IP mode on Windows.\n\n" +
"You can bypass this by using a SOCKS proxy [Extra -> Advanced -> SOCKS]", ButtonType.OK); "You can bypass this by using a SOCKS proxy [Extra -> Advanced -> SOCKS]", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
alert.setResizable(false); alert.setResizable(false);
alert.show(); alert.show();

View File

@ -125,8 +125,8 @@ public abstract class FlashProxyProvider implements ProxyProvider {
Platform.runLater(() -> { Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.ERROR, "You entered invalid connection information, G-Earth could not connect", ButtonType.OK); Alert alert = new Alert(Alert.AlertType.ERROR, "You entered invalid connection information, G-Earth could not connect", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
alert.setResizable(false); alert.setResizable(false);
alert.show(); alert.show();

View File

@ -110,8 +110,8 @@ public class NormalFlashProxyProvider extends FlashProxyProvider {
Alert a = new Alert(Alert.AlertType.ERROR, "The port is in use by " + processName, Alert a = new Alert(Alert.AlertType.ERROR, "The port is in use by " + processName,
ButtonType.OK); ButtonType.OK);
Stage stage = (Stage) a.getDialogPane().getScene().getWindow(); Stage stage = (Stage) a.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
a.showAndWait(); a.showAndWait();
}); });
throw new IOException(e); throw new IOException(e);

View File

@ -57,8 +57,8 @@ public class NitroHttpProxy {
ButtonType.YES, ButtonType.NO ButtonType.YES, ButtonType.NO
); );
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
shouldInstall.set(alert.showAndWait().filter(t -> t == ButtonType.YES).isPresent()); shouldInstall.set(alert.showAndWait().filter(t -> t == ButtonType.YES).isPresent());
waitForDialog.release(); waitForDialog.release();

View File

@ -83,8 +83,8 @@ public class Rc4Obtainer {
Platform.runLater(() -> { Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.WARNING, "Something went wrong!", ButtonType.OK); Alert alert = new Alert(Alert.AlertType.WARNING, "Something went wrong!", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
FlowPane fp = new FlowPane(); FlowPane fp = new FlowPane();
Label lbl = new Label("G-Earth has experienced an issue" + System.lineSeparator()+ System.lineSeparator() + "Head over to our Troubleshooting page to solve the problem:"); Label lbl = new Label("G-Earth has experienced an issue" + System.lineSeparator()+ System.lineSeparator() + "Head over to our Troubleshooting page to solve the problem:");

View File

@ -1,7 +1,7 @@
package gearth.services.g_python; package gearth.services.g_python;
import gearth.GEarth; import gearth.GEarth;
import gearth.ui.extra.ExtraController; import gearth.ui.subforms.extra.ExtraController;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.scene.control.Alert; import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType; import javafx.scene.control.ButtonType;
@ -171,8 +171,8 @@ public class GPythonShell {
Platform.runLater(() -> { Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.ERROR, "G-Python error", ButtonType.OK); Alert alert = new Alert(Alert.AlertType.ERROR, "G-Python error", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
alert.setTitle("G-Python error"); alert.setTitle("G-Python error");
FlowPane fp = new FlowPane(); FlowPane fp = new FlowPane();

View File

@ -26,8 +26,8 @@ public class GExtensionStoreLauncher extends InternalExtensionFormLauncher<GExte
stage.setHeight(530); stage.setHeight(530);
stage.setScene(new Scene(root)); stage.setScene(new Scene(root));
stage.getScene().getStylesheets().add(GEarthController.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarthController.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
GExtensionStore gExtensionStore = new GExtensionStore(); GExtensionStore gExtensionStore = new GExtensionStore();

View File

@ -2,17 +2,10 @@ package gearth.services.internal_extensions.uilogger;
import gearth.extensions.ExtensionForm; import gearth.extensions.ExtensionForm;
import gearth.extensions.ExtensionInfo; import gearth.extensions.ExtensionInfo;
import gearth.services.packet_info.PacketInfoManager;
import gearth.protocol.HConnection; import gearth.protocol.HConnection;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;
import gearth.protocol.HPacket; import gearth.protocol.HPacket;
import gearth.ui.logger.loggerdisplays.PacketLogger; import gearth.ui.subforms.logger.loggerdisplays.PacketLogger;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Modality;
import javafx.stage.Stage;
@ExtensionInfo( @ExtensionInfo(
Title = "Packet Logger", Title = "Packet Logger",

View File

@ -4,10 +4,9 @@ package gearth.services.internal_extensions.uilogger;
import gearth.misc.Cacher; import gearth.misc.Cacher;
import gearth.services.internal_extensions.uilogger.hexdumper.Hexdump; import gearth.services.internal_extensions.uilogger.hexdumper.Hexdump;
import gearth.services.packet_info.PacketInfo; import gearth.services.packet_info.PacketInfo;
import gearth.services.packet_info.PacketInfoManager;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;
import gearth.protocol.HPacket; import gearth.protocol.HPacket;
import gearth.ui.logger.loggerdisplays.PacketLogger; import gearth.ui.subforms.logger.loggerdisplays.PacketLogger;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
@ -18,7 +17,6 @@ import javafx.scene.layout.FlowPane;
import javafx.stage.Stage; import javafx.stage.Stage;
import org.fxmisc.flowless.VirtualizedScrollPane; import org.fxmisc.flowless.VirtualizedScrollPane;
import org.fxmisc.richtext.StyleClassedTextArea; import org.fxmisc.richtext.StyleClassedTextArea;
import org.fxmisc.richtext.StyledTextArea;
import org.fxmisc.richtext.model.StyleSpansBuilder; import org.fxmisc.richtext.model.StyleSpansBuilder;
import java.io.BufferedWriter; import java.io.BufferedWriter;

View File

@ -19,10 +19,10 @@ public class UiLoggerLauncher extends InternalExtensionFormLauncher<UiLogger> {
Parent root = loader.load(); Parent root = loader.load();
stage.setTitle(String.format("%s | Packet Logger", GEarth.theme)); stage.setTitle(String.format("%s | Packet Logger", GEarth.theme));
stage.initModality(Modality.NONE); stage.initModality(Modality.NONE);
stage.getIcons().add(new Image(getClass().getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(getClass().getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
Scene scene = new Scene(root); Scene scene = new Scene(root);
scene.getStylesheets().add(String.format("/gearth/themes/%s/styling.css", GEarth.theme)); scene.getStylesheets().add(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme));
scene.getStylesheets().add("/gearth/services/internal_extensions/uilogger/logger.css"); scene.getStylesheets().add("/gearth/services/internal_extensions/uilogger/logger.css");
UiLoggerController controller = loader.getController(); UiLoggerController controller = loader.getController();

View File

@ -1,6 +1,6 @@
package gearth.services.scheduler; package gearth.services.scheduler;
import gearth.ui.scheduler.SchedulerController; import gearth.ui.subforms.scheduler.SchedulerController;
/** /**
* Created by Jonas on 11/04/18. * Created by Jonas on 11/04/18.

View File

@ -135,7 +135,7 @@ public class GUnityFileServer extends HttpServlet
private void getLogo(HttpServletResponse response) throws IOException { private void getLogo(HttpServletResponse response) throws IOException {
OutputStream out = response.getOutputStream(); OutputStream out = response.getOutputStream();
InputStream in = GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logo.png", GEarth.theme)); InputStream in = GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logo.png", GEarth.theme));
byte[] bytes = new byte[4096]; byte[] bytes = new byte[4096];
int bytesRead; int bytesRead;

View File

@ -1,27 +1,21 @@
package gearth.ui; package gearth.ui;
import gearth.GEarth;
import gearth.protocol.connection.proxy.ProxyProviderFactory; import gearth.protocol.connection.proxy.ProxyProviderFactory;
import gearth.protocol.connection.proxy.SocksConfiguration; import gearth.protocol.connection.proxy.SocksConfiguration;
import gearth.ui.logger.loggerdisplays.PacketLoggerFactory; import gearth.ui.subforms.logger.loggerdisplays.PacketLoggerFactory;
import javafx.application.Platform;
import javafx.scene.control.*; import javafx.scene.control.*;
import javafx.scene.image.Image;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Pane;
import javafx.stage.Stage; import javafx.stage.Stage;
import gearth.protocol.HConnection; import gearth.protocol.HConnection;
import gearth.ui.connection.ConnectionController; import gearth.ui.subforms.connection.ConnectionController;
import gearth.ui.extensions.ExtensionsController; import gearth.ui.subforms.extensions.ExtensionsController;
import gearth.ui.info.InfoController; import gearth.ui.subforms.info.InfoController;
import gearth.ui.injection.InjectionController; import gearth.ui.subforms.injection.InjectionController;
import gearth.ui.logger.LoggerController; import gearth.ui.subforms.logger.LoggerController;
import gearth.ui.scheduler.SchedulerController; import gearth.ui.subforms.scheduler.SchedulerController;
import gearth.ui.extra.ExtraController; import gearth.ui.subforms.extra.ExtraController;
import gearth.ui.tools.ToolsController; import gearth.ui.subforms.tools.ToolsController;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
public class GEarthController { public class GEarthController {

View File

@ -1,4 +1,4 @@
package gearth.ui.connection; package gearth.ui.subforms.connection;
import gearth.GEarth; import gearth.GEarth;
import gearth.misc.Cacher; import gearth.misc.Cacher;

View File

@ -1,4 +1,4 @@
package gearth.ui.extensions; package gearth.ui.subforms.extensions;
import gearth.services.extension_handler.extensions.ExtensionType; import gearth.services.extension_handler.extensions.ExtensionType;
import gearth.services.extension_handler.extensions.GEarthExtension; import gearth.services.extension_handler.extensions.GEarthExtension;
@ -9,7 +9,6 @@ import javafx.geometry.Pos;
import javafx.scene.control.*; import javafx.scene.control.*;
import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseEvent;
import javafx.scene.layout.*; import javafx.scene.layout.*;
import javafx.scene.paint.Paint;
import javafx.scene.text.Font; import javafx.scene.text.Font;
import gearth.misc.ConfirmationDialog; import gearth.misc.ConfirmationDialog;
import gearth.ui.buttons.*; import gearth.ui.buttons.*;

View File

@ -1,4 +1,4 @@
package gearth.ui.extensions; package gearth.ui.subforms.extensions;
import gearth.services.extension_handler.extensions.GEarthExtension; import gearth.services.extension_handler.extensions.GEarthExtension;
import javafx.scene.Node; import javafx.scene.Node;

View File

@ -1,4 +1,4 @@
package gearth.ui.extensions; package gearth.ui.subforms.extensions;
import gearth.services.extension_handler.ExtensionHandler; import gearth.services.extension_handler.ExtensionHandler;
import gearth.services.extension_handler.extensions.ExtensionListener; import gearth.services.extension_handler.extensions.ExtensionListener;
@ -9,7 +9,7 @@ import gearth.services.extension_handler.extensions.implementations.network.exec
import gearth.services.extension_handler.extensions.implementations.network.executer.ExtensionRunnerFactory; import gearth.services.extension_handler.extensions.implementations.network.executer.ExtensionRunnerFactory;
import gearth.services.g_python.GPythonShell; import gearth.services.g_python.GPythonShell;
import gearth.ui.SubForm; import gearth.ui.SubForm;
import gearth.ui.extensions.logger.ExtensionLogger; import gearth.ui.subforms.extensions.logger.ExtensionLogger;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.*; import javafx.scene.control.*;

View File

@ -1,4 +1,4 @@
package gearth.ui.extensions.logger; package gearth.ui.subforms.extensions.logger;
class Element { class Element {
final String text; final String text;

View File

@ -1,4 +1,4 @@
package gearth.ui.extensions.logger; package gearth.ui.subforms.extensions.logger;
import gearth.GEarth; import gearth.GEarth;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
@ -21,7 +21,7 @@ public class ExtensionLogger {
volatile boolean isVisible = false; volatile boolean isVisible = false;
public ExtensionLogger() { public ExtensionLogger() {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/gearth/ui/extensions/logger/ExtensionLogger.fxml")); FXMLLoader loader = new FXMLLoader(getClass().getResource("/gearth/ui/subforms/extensions/logger/ExtensionLogger.fxml"));
try { try {
Parent root = loader.load(); Parent root = loader.load();
@ -37,13 +37,13 @@ public class ExtensionLogger {
stage = new Stage(); stage = new Stage();
stage.setTitle(String.format("%s | Extension Console", GEarth.theme)); stage.setTitle(String.format("%s | Extension Console", GEarth.theme));
stage.initModality(Modality.NONE); stage.initModality(Modality.NONE);
stage.getIcons().add(new Image(getClass().getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(getClass().getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.setAlwaysOnTop(true); stage.setAlwaysOnTop(true);
stage.setMinHeight(235); stage.setMinHeight(235);
stage.setMinWidth(370); stage.setMinWidth(370);
Scene scene = new Scene(root); Scene scene = new Scene(root);
scene.getStylesheets().add(String.format("/gearth/themes/%s/styling.css", GEarth.theme)); scene.getStylesheets().add(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme));
scene.getStylesheets().add("/gearth/ui/extensions/logger/logger.css"); scene.getStylesheets().add("/gearth/ui/extensions/logger/logger.css");
ExtensionLoggerController controller = loader.getController(); ExtensionLoggerController controller = loader.getController();
controller.setStage(stage); controller.setStage(stage);

View File

@ -1,8 +1,7 @@
package gearth.ui.extensions.logger; package gearth.ui.subforms.extensions.logger;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.BorderPane; import javafx.scene.layout.BorderPane;
import javafx.stage.Stage; import javafx.stage.Stage;
import org.fxmisc.flowless.VirtualizedScrollPane; import org.fxmisc.flowless.VirtualizedScrollPane;

View File

@ -1,4 +1,4 @@
package gearth.ui.extra; package gearth.ui.subforms.extra;
import gearth.GEarth; import gearth.GEarth;
import gearth.misc.Cacher; import gearth.misc.Cacher;
@ -9,7 +9,7 @@ import gearth.protocol.connection.proxy.SocksConfiguration;
import gearth.services.always_admin.AdminService; import gearth.services.always_admin.AdminService;
import gearth.services.g_python.GPythonVersionUtils; import gearth.services.g_python.GPythonVersionUtils;
import gearth.ui.SubForm; import gearth.ui.SubForm;
import gearth.ui.info.InfoController; import gearth.ui.subforms.info.InfoController;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.*; import javafx.scene.control.*;
@ -176,8 +176,8 @@ public class ExtraController extends SubForm implements SocksConfiguration {
Platform.runLater(() -> { Platform.runLater(() -> {
Alert alert = new Alert(Alert.AlertType.ERROR, "G-Python installation", ButtonType.OK); Alert alert = new Alert(Alert.AlertType.ERROR, "G-Python installation", ButtonType.OK);
Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/themes/%s/logoSmall.png", GEarth.theme)))); stage.getIcons().add(new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", GEarth.theme))));
stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/themes/%s/styling.css", GEarth.theme)).toExternalForm()); stage.getScene().getStylesheets().add(GEarth.class.getResource(String.format("/gearth/ui/themes/%s/styling.css", GEarth.theme)).toExternalForm());
alert.setTitle("G-Python installation"); alert.setTitle("G-Python installation");
FlowPane fp = new FlowPane(); FlowPane fp = new FlowPane();

View File

@ -1,14 +1,12 @@
package gearth.ui.info; package gearth.ui.subforms.info;
import gearth.GEarth; import gearth.GEarth;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.*; import javafx.scene.control.*;
import gearth.ui.SubForm; import gearth.ui.SubForm;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView; import javafx.scene.image.ImageView;
import javafx.scene.layout.Region; import javafx.scene.layout.Region;
import javafx.scene.web.WebView; import javafx.scene.web.WebView;
import javafx.stage.Stage;
/** /**
* Created by Jonas on 06/04/18. * Created by Jonas on 06/04/18.

View File

@ -1,4 +1,4 @@
package gearth.ui.injection; package gearth.ui.subforms.injection;
import gearth.misc.StringifyAble; import gearth.misc.StringifyAble;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;

View File

@ -1,4 +1,4 @@
package gearth.ui.injection; package gearth.ui.subforms.injection;
import gearth.misc.Cacher; import gearth.misc.Cacher;
import gearth.services.packet_info.PacketInfoManager; import gearth.services.packet_info.PacketInfoManager;
@ -8,8 +8,6 @@ import javafx.application.Platform;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.*; import javafx.scene.control.*;
import javafx.scene.input.MouseButton; import javafx.scene.input.MouseButton;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.GridPane;
import javafx.scene.paint.Color; import javafx.scene.paint.Color;
import javafx.scene.paint.Paint; import javafx.scene.paint.Paint;
import javafx.scene.text.Text; import javafx.scene.text.Text;
@ -20,7 +18,6 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class InjectionController extends SubForm { public class InjectionController extends SubForm {

View File

@ -1,4 +1,4 @@
package gearth.ui.logger; package gearth.ui.subforms.logger;
import gearth.protocol.connection.HState; import gearth.protocol.connection.HState;
import javafx.application.Platform; import javafx.application.Platform;
@ -12,8 +12,8 @@ import javafx.scene.text.Text;
import javafx.scene.text.TextFlow; import javafx.scene.text.TextFlow;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;
import gearth.ui.SubForm; import gearth.ui.SubForm;
import gearth.ui.logger.loggerdisplays.PacketLogger; import gearth.ui.subforms.logger.loggerdisplays.PacketLogger;
import gearth.ui.logger.loggerdisplays.PacketLoggerFactory; import gearth.ui.subforms.logger.loggerdisplays.PacketLoggerFactory;
import java.util.Calendar; import java.util.Calendar;

View File

@ -1,4 +1,4 @@
package gearth.ui.logger.loggerdisplays; package gearth.ui.subforms.logger.loggerdisplays;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;
import gearth.protocol.HPacket; import gearth.protocol.HPacket;

View File

@ -1,4 +1,4 @@
package gearth.ui.logger.loggerdisplays; package gearth.ui.subforms.logger.loggerdisplays;
import gearth.protocol.HConnection; import gearth.protocol.HConnection;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;

View File

@ -1,4 +1,4 @@
package gearth.ui.logger.loggerdisplays; package gearth.ui.subforms.logger.loggerdisplays;
import gearth.GEarth; import gearth.GEarth;
import gearth.extensions.InternalExtensionFormBuilder; import gearth.extensions.InternalExtensionFormBuilder;

View File

@ -1,4 +1,4 @@
package gearth.ui.logger.loggerdisplays; package gearth.ui.subforms.logger.loggerdisplays;
import gearth.services.packet_info.PacketInfoManager; import gearth.services.packet_info.PacketInfoManager;
import gearth.protocol.HConnection; import gearth.protocol.HConnection;

View File

@ -1,17 +1,14 @@
package gearth.ui.scheduler; package gearth.ui.subforms.scheduler;
import gearth.misc.StringifyAble; import gearth.misc.StringifyAble;
import gearth.misc.listenerpattern.Observable; import gearth.misc.listenerpattern.Observable;
import gearth.protocol.HMessage; import gearth.protocol.HMessage;
import gearth.protocol.HPacket;
import gearth.services.scheduler.Interval; import gearth.services.scheduler.Interval;
import gearth.services.scheduler.ScheduleItem; import gearth.services.scheduler.ScheduleItem;
import gearth.services.scheduler.listeners.OnBeingUpdatedListener; import gearth.services.scheduler.listeners.OnBeingUpdatedListener;
import gearth.services.scheduler.listeners.OnDeleteListener; import gearth.services.scheduler.listeners.OnDeleteListener;
import gearth.services.scheduler.listeners.OnEditListener; import gearth.services.scheduler.listeners.OnEditListener;
import gearth.services.scheduler.listeners.OnUpdatedListener; import gearth.services.scheduler.listeners.OnUpdatedListener;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
public class InteractableScheduleItem extends ScheduleItem implements StringifyAble { public class InteractableScheduleItem extends ScheduleItem implements StringifyAble {

View File

@ -1,6 +1,5 @@
package gearth.ui.scheduler; package gearth.ui.subforms.scheduler;
import gearth.services.scheduler.ScheduleItem;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import javafx.geometry.Pos; import javafx.geometry.Pos;
import javafx.scene.control.Label; import javafx.scene.control.Label;

View File

@ -1,8 +1,7 @@
package gearth.ui.scheduler; package gearth.ui.subforms.scheduler;
import com.tulskiy.keymaster.common.Provider; import com.tulskiy.keymaster.common.Provider;
import gearth.services.scheduler.Interval; import gearth.services.scheduler.Interval;
import gearth.services.scheduler.ScheduleItem;
import gearth.services.scheduler.Scheduler; import gearth.services.scheduler.Scheduler;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
@ -17,9 +16,7 @@ import gearth.ui.SubForm;
import javax.swing.*; import javax.swing.*;
import java.io.*; import java.io.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set;
/** /**
* Created by Jonas on 06/04/18. * Created by Jonas on 06/04/18.

View File

@ -1,7 +1,6 @@
package gearth.ui.tools; package gearth.ui.subforms.tools;
import gearth.services.packet_info.PacketInfoManager; import gearth.services.packet_info.PacketInfoManager;
import gearth.protocol.HMessage;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.scene.control.Button; import javafx.scene.control.Button;
import javafx.scene.control.TextArea; import javafx.scene.control.TextArea;

View File

@ -34,6 +34,7 @@ public class TitleBarController {
Parent parent = stage.getScene().getRoot(); Parent parent = stage.getScene().getRoot();
VBox newParent = new VBox(root, parent); VBox newParent = new VBox(root, parent);
newParent.setId("titlebar-main-container");
stage.getScene().setRoot(newParent); stage.getScene().setRoot(newParent);
parent.getScene().setFill(Color.TRANSPARENT); parent.getScene().setFill(Color.TRANSPARENT);

View File

@ -7,31 +7,31 @@
<!--maxHeight="19.0" minHeight="19.0"--> <!--maxHeight="19.0" minHeight="19.0"-->
<VBox id="main-window" prefWidth="650.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.GEarthController"> <VBox prefWidth="650.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.GEarthController">
<TabPane id="main-tab-pane" fx:id="tabBar" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="295.0" prefWidth="650.0" tabClosingPolicy="UNAVAILABLE"> <TabPane id="main-tab-pane" fx:id="tabBar" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="295.0" prefWidth="650.0" tabClosingPolicy="UNAVAILABLE">
<Tab text="Connection"> <Tab text="Connection">
<fx:include fx:id="connection" source="connection/Connection.fxml" /> <fx:include fx:id="connection" source="subforms/connection/Connection.fxml" />
</Tab> </Tab>
<Tab fx:id="tab_Logger" text="Logger"> <Tab fx:id="tab_Logger" text="Logger">
<fx:include fx:id="logger" source="logger/Logger.fxml" /> <fx:include fx:id="logger" source="subforms/logger/Logger.fxml" />
</Tab> </Tab>
<Tab text="Injection"> <Tab text="Injection">
<fx:include fx:id="injection" source="injection/Injection.fxml" /> <fx:include fx:id="injection" source="subforms/injection/Injection.fxml" />
</Tab> </Tab>
<Tab text="Tools"> <Tab text="Tools">
<fx:include fx:id="tools" source="tools/Tools.fxml" /> <fx:include fx:id="tools" source="subforms/tools/Tools.fxml" />
</Tab> </Tab>
<Tab text="Scheduler"> <Tab text="Scheduler">
<fx:include fx:id="scheduler" source="scheduler/Scheduler.fxml" /> <fx:include fx:id="scheduler" source="subforms/scheduler/Scheduler.fxml" />
</Tab> </Tab>
<Tab text="Extensions"> <Tab text="Extensions">
<fx:include fx:id="extensions" source="extensions/Extensions.fxml" /> <fx:include fx:id="extensions" source="subforms/extensions/Extensions.fxml" />
</Tab> </Tab>
<Tab text="Extra"> <Tab text="Extra">
<fx:include fx:id="extra" source="extra/Extra.fxml" /> <fx:include fx:id="extra" source="subforms/extra/Extra.fxml" />
</Tab> </Tab>
<Tab text="Info"> <Tab text="Info">
<fx:include fx:id="info" source="info/Info.fxml" /> <fx:include fx:id="info" source="subforms/info/Info.fxml" />
</Tab> </Tab>
</TabPane> </TabPane>

View File

@ -5,7 +5,7 @@
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<GridPane alignment="CENTER" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.connection.ConnectionController"> <GridPane alignment="CENTER" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.connection.ConnectionController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints> </columnConstraints>

View File

@ -4,7 +4,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.extensions.ExtensionsController"> <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.extensions.ExtensionsController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="277.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="277.0" />
</columnConstraints> </columnConstraints>

View File

@ -3,7 +3,7 @@
<?import javafx.geometry.*?> <?import javafx.geometry.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<BorderPane fx:id="borderPane" prefHeight="230.0" prefWidth="394.0" style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.extensions.logger.ExtensionLoggerController"> <BorderPane fx:id="borderPane" prefHeight="230.0" prefWidth="394.0" style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.extensions.logger.ExtensionLoggerController">
<padding> <padding>
<Insets bottom="1.0" left="5.0" right="1.0" top="5.0" /> <Insets bottom="1.0" left="5.0" right="1.0" top="5.0" />
</padding> </padding>

View File

@ -4,7 +4,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.extra.ExtraController"> <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.extra.ExtraController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="331.0" minWidth="10.0" prefWidth="318.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="331.0" minWidth="10.0" prefWidth="318.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="247.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="247.0" />

View File

@ -5,7 +5,7 @@
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.info.InfoController"> <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.info.InfoController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="332.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="332.0" />
</columnConstraints> </columnConstraints>

View File

@ -5,7 +5,7 @@
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?> <?import javafx.scene.text.*?>
<GridPane prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.injection.InjectionController"> <GridPane prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.injection.InjectionController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="180.0" minWidth="180.0" prefWidth="180.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="180.0" minWidth="180.0" prefWidth="180.0" />

View File

@ -14,7 +14,7 @@
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0"
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="gearth.ui.logger.LoggerController"> fx:controller="gearth.ui.subforms.logger.LoggerController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="293.0" minWidth="10.0" prefWidth="242.0"/> <ColumnConstraints hgrow="SOMETIMES" maxWidth="293.0" minWidth="10.0" prefWidth="242.0"/>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="323.0"/> <ColumnConstraints hgrow="SOMETIMES" maxWidth="390.0" minWidth="10.0" prefWidth="323.0"/>

View File

@ -4,7 +4,7 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.scheduler.SchedulerController"> <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.scheduler.SchedulerController">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="277.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="277.0" />
</columnConstraints> </columnConstraints>

View File

@ -12,7 +12,7 @@
<GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0" <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="258.0" prefWidth="650.0"
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="gearth.ui.tools.ToolsController"> fx:controller="gearth.ui.subforms.tools.ToolsController">
<rowConstraints> <rowConstraints>
<RowConstraints maxHeight="158.0" minHeight="10.0" prefHeight="134.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="158.0" minHeight="10.0" prefHeight="134.0" vgrow="SOMETIMES"/>
<RowConstraints maxHeight="141.0" minHeight="10.0" prefHeight="128.0" vgrow="SOMETIMES"/> <RowConstraints maxHeight="141.0" minHeight="10.0" prefHeight="128.0" vgrow="SOMETIMES"/>

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 569 KiB

After

Width:  |  Height:  |  Size: 569 KiB

View File

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -1,4 +1,4 @@
#main-window { #titlebar-main-container {
-fx-body-color : transparent; -fx-body-color : transparent;
-fx-background-radius: 15; -fx-background-radius: 15;
-fx-outer-border : #cecece; -fx-outer-border : #cecece;
@ -921,27 +921,27 @@ VBox > .split-menu-button.last > .arrow-button {
} }
#close-button { #close-button {
-fx-image: url("../../ui/titlebar/files/closeButton.png"); -fx-image: url("../../titlebar/files/closeButton.png");
} }
#close-button:hover { #close-button:hover {
-fx-image: url("../../ui/titlebar/files/closeButtonHover.png"); -fx-image: url("../../titlebar/files/closeButtonHover.png");
} }
#close-button:pressed { #close-button:pressed {
-fx-image: url("../../ui/titlebar/files/closeButtonPressed.png"); -fx-image: url("../../titlebar/files/closeButtonPressed.png");
} }
#minimize-button { #minimize-button {
-fx-image: url("../../ui/titlebar/files/minimizeButton.png"); -fx-image: url("../../titlebar/files/minimizeButton.png");
} }
#minimize-button:hover { #minimize-button:hover {
-fx-image: url("../../ui/titlebar/files/minimizeButtonHover.png"); -fx-image: url("../../titlebar/files/minimizeButtonHover.png");
} }
#minimize-button:pressed { #minimize-button:pressed {
-fx-image: url("../../ui/titlebar/files/minimizeButtonPressed.png"); -fx-image: url("../../titlebar/files/minimizeButtonPressed.png");
} }
#main-tab-pane, #main-tab-pane > * { #main-tab-pane, #main-tab-pane > * {
@ -949,11 +949,11 @@ VBox > .split-menu-button.last > .arrow-button {
} }
#icon { #icon {
-fx-image: url("./logoSmall.png"); -fx-image: url("logoSmall.png");
} }
#theme-button { #theme-button {
-fx-image: url("./themeButton.png"); -fx-image: url("themeButton.png");
} }
.corrupted-label { .corrupted-label {

View File

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 569 KiB

After

Width:  |  Height:  |  Size: 569 KiB

View File

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -1,4 +1,4 @@
#main-window { #titlebar-main-container {
-fx-body-color : transparent; -fx-body-color : transparent;
-fx-background-radius: 15; -fx-background-radius: 15;
-fx-outer-border: #222222; -fx-outer-border: #222222;
@ -960,31 +960,31 @@ VBox > .split-menu-button.last > .arrow-button {
} }
#close-button { #close-button {
-fx-image: url("../../ui/titlebar/files/closeButtonDark.png"); -fx-image: url("../../titlebar/files/closeButtonDark.png");
-fx-padding: 10; -fx-padding: 10;
-fx-background-color: firebrick; -fx-background-color: firebrick;
} }
#close-button:hover { #close-button:hover {
-fx-image: url("../../ui/titlebar/files/closeButtonHover.png"); -fx-image: url("../../titlebar/files/closeButtonHover.png");
-fx-background-color: #e81123; -fx-background-color: #e81123;
} }
#close-button:pressed { #close-button:pressed {
-fx-image: url("../../ui/titlebar/files/closeButtonPressed.png"); -fx-image: url("../../titlebar/files/closeButtonPressed.png");
-fx-background-color: rgba(232, 17, 35, 0.8); -fx-background-color: rgba(232, 17, 35, 0.8);
} }
#minimize-button { #minimize-button {
-fx-image: url("../../ui/titlebar/files/minimizeButtonDark.png"); -fx-image: url("../../titlebar/files/minimizeButtonDark.png");
} }
#minimize-button:hover { #minimize-button:hover {
-fx-image: url("../../ui/titlebar/files/minimizeButtonDarkHover.png"); -fx-image: url("../../titlebar/files/minimizeButtonDarkHover.png");
} }
#minimize-button:pressed { #minimize-button:pressed {
-fx-image: url("../../ui/titlebar/files/minimizeButtonDarkPressed.png"); -fx-image: url("../../titlebar/files/minimizeButtonDarkPressed.png");
} }
#main-tab-pane, #main-tab-pane > * { #main-tab-pane, #main-tab-pane > * {
@ -992,11 +992,11 @@ VBox > .split-menu-button.last > .arrow-button {
} }
#icon { #icon {
-fx-image: url("./logoSmall.png"); -fx-image: url("logoSmall.png");
} }
#theme-button { #theme-button {
-fx-image: url("./themeButton.png"); -fx-image: url("themeButton.png");
} }
/* Error window */ /* Error window */

View File

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 361 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -1,4 +1,4 @@
#main-window { #titlebar-main-container {
-fx-body-color : transparent; -fx-body-color : transparent;
-fx-background-radius: 15; -fx-background-radius: 15;
-fx-outer-border : #cecece; -fx-outer-border : #cecece;
@ -921,27 +921,27 @@ VBox > .split-menu-button.last > .arrow-button {
} }
#close-button { #close-button {
-fx-image: url("../../ui/titlebar/files/closeButton.png"); -fx-image: url("../../titlebar/files/closeButton.png");
} }
#close-button:hover { #close-button:hover {
-fx-image: url("../../ui/titlebar/files/closeButtonHover.png"); -fx-image: url("../../titlebar/files/closeButtonHover.png");
} }
#close-button:pressed { #close-button:pressed {
-fx-image: url("../../ui/titlebar/files/closeButtonPressed.png"); -fx-image: url("../../titlebar/files/closeButtonPressed.png");
} }
#minimize-button { #minimize-button {
-fx-image: url("../../ui/titlebar/files/minimizeButton.png"); -fx-image: url("../../titlebar/files/minimizeButton.png");
} }
#minimize-button:hover { #minimize-button:hover {
-fx-image: url("../../ui/titlebar/files/minimizeButtonHover.png"); -fx-image: url("../../titlebar/files/minimizeButtonHover.png");
} }
#minimize-button:pressed { #minimize-button:pressed {
-fx-image: url("../../ui/titlebar/files/minimizeButtonPressed.png"); -fx-image: url("../../titlebar/files/minimizeButtonPressed.png");
} }
#main-tab-pane, #main-tab-pane > * { #main-tab-pane, #main-tab-pane > * {
@ -949,11 +949,11 @@ VBox > .split-menu-button.last > .arrow-button {
} }
#icon { #icon {
-fx-image: url("./logoSmall.png"); -fx-image: url("logoSmall.png");
} }
#theme-button { #theme-button {
-fx-image: url("./themeButton.png"); -fx-image: url("themeButton.png");
} }
.corrupted-label { .corrupted-label {

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -20,7 +20,7 @@
</ImageView> </ImageView>
<ImageView id="icon" fitHeight="16.0" fitWidth="16.0" layoutX="7.0" layoutY="5.0" pickOnBounds="true" preserveRatio="true"> <ImageView id="icon" fitHeight="16.0" fitWidth="16.0" layoutX="7.0" layoutY="5.0" pickOnBounds="true" preserveRatio="true">
<image> <image>
<Image url="@../../themes/G-Earth/logoSmall.png" /> <Image url="@../themes/G-Earth/logoSmall.png" />
</image> </image>
</ImageView> </ImageView>
<Label fx:id="titleLabel" layoutX="23.0" layoutY="5.0" text="G-Earth 1.5.1"> <Label fx:id="titleLabel" layoutX="23.0" layoutY="5.0" text="G-Earth 1.5.1">
@ -30,6 +30,6 @@
</Label> </Label>
<ImageView id="theme-button" fitHeight="20.0" fitWidth="38.0" layoutX="505.0" layoutY="3.0" onMouseClicked="#toggleTheme" pickOnBounds="true" preserveRatio="true"> <ImageView id="theme-button" fitHeight="20.0" fitWidth="38.0" layoutX="505.0" layoutY="3.0" onMouseClicked="#toggleTheme" pickOnBounds="true" preserveRatio="true">
<image> <image>
<Image url="@../../themes/G-Earth/themeButton.png" /> <Image url="@../themes/G-Earth/themeButton.png" />
</image></ImageView> </image></ImageView>
</children></Pane> </children></Pane>