mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
Update styles, fix blur effect, fix combobox styles, remove pressed options
This commit is contained in:
parent
a8f8073f8c
commit
3b8eb3d851
10 changed files with 207 additions and 181 deletions
|
@ -1,10 +1,11 @@
|
||||||
var authPane, dimPane, serverPane, bar, consoleBar, optionsPane, consolePane;
|
var authPane, dimPane, serverPane, bar, consoleBar, optionsPane, consolePane, loginPaneLayout, serverPaneLayout;
|
||||||
var loginField, passwordField, savePasswordBox, authOptions;
|
var loginField, passwordField, savePasswordBox, authOptions;
|
||||||
var serverList, serverInfo, serverDescription, serverEntrance, serverLabel, serverStatus;
|
var serverList, serverInfo, serverDescription, serverEntrance, serverLabel, serverStatus;
|
||||||
var profilesList = [];
|
var profilesList = [];
|
||||||
var movePoint = null;
|
var movePoint = null;
|
||||||
var pingers = {};
|
var pingers = {};
|
||||||
var loginData;
|
var loginData;
|
||||||
|
var authTypes = {};
|
||||||
|
|
||||||
function initLauncher() {
|
function initLauncher() {
|
||||||
initLoginScene();
|
initLoginScene();
|
||||||
|
@ -41,6 +42,10 @@ function initLoginScene() {
|
||||||
var pane = loginPane.lookup("#authPane");
|
var pane = loginPane.lookup("#authPane");
|
||||||
authPane = pane;
|
authPane = pane;
|
||||||
|
|
||||||
|
var loginLayout = loginPane.lookup("#layout");
|
||||||
|
loginPaneLayout = loginLayout;
|
||||||
|
|
||||||
|
|
||||||
loginField = pane.lookup("#login");
|
loginField = pane.lookup("#login");
|
||||||
loginField.setOnMouseMoved(function(event){rootPane.fireEvent(event)});
|
loginField.setOnMouseMoved(function(event){rootPane.fireEvent(event)});
|
||||||
loginField.setOnAction(goAuth);
|
loginField.setOnAction(goAuth);
|
||||||
|
@ -91,6 +96,9 @@ function initMenuScene() {
|
||||||
var pane = menuPane.lookup("#serverPane");
|
var pane = menuPane.lookup("#serverPane");
|
||||||
serverPane = pane;
|
serverPane = pane;
|
||||||
|
|
||||||
|
var menuLayout = menuPane.lookup("#layout");
|
||||||
|
serverPaneLayout = menuLayout;
|
||||||
|
|
||||||
pane.lookup("#clientSettings").setOnAction(goOptions);
|
pane.lookup("#clientSettings").setOnAction(goOptions);
|
||||||
serverList = pane.lookup("#serverlist").getContent();
|
serverList = pane.lookup("#serverlist").getContent();
|
||||||
serverInfo = pane.lookup("#serverinfo").getContent();
|
serverInfo = pane.lookup("#serverinfo").getContent();
|
||||||
|
@ -187,13 +195,16 @@ function goAuth(event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get auth
|
var auth = authOptions.getSelectionModel().getSelectedItem();
|
||||||
/* var auth = authOptions.getSelectionModel().getSelectedItem();
|
|
||||||
if (auth === null) {
|
if (auth === null) {
|
||||||
return; // No auth selected
|
return; // No auth selected
|
||||||
}*/
|
}
|
||||||
|
|
||||||
var rsaPassword = null;
|
var rsaPassword = null;
|
||||||
|
var auth = authOptions.getSelectionModel().getSelectedItem();
|
||||||
|
if (auth === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!passwordField.isDisable()) {
|
if (!passwordField.isDisable()) {
|
||||||
var password = passwordField.getText();
|
var password = passwordField.getText();
|
||||||
if (password !== null && !password.isEmpty()) {
|
if (password !== null && !password.isEmpty()) {
|
||||||
|
@ -208,7 +219,7 @@ function goAuth(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
settings.login = login;
|
settings.login = login;
|
||||||
doAuth(/*auth, */login, rsaPassword);
|
doAuth(login, rsaPassword, authTypes[auth]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ======== Console ======== */
|
/* ======== Console ======== */
|
||||||
|
@ -242,17 +253,22 @@ function verifyLauncher(e) {
|
||||||
initOffline();
|
initOffline();
|
||||||
}
|
}
|
||||||
overlay.swap(0, processing.overlay, function(event) makeAuthAvailabilityRequest(function(result) {
|
overlay.swap(0, processing.overlay, function(event) makeAuthAvailabilityRequest(function(result) {
|
||||||
//result.list;
|
var iter = 0;
|
||||||
//result.list[0].name;
|
authTypes = {};
|
||||||
//result.list[0].displayName;
|
|
||||||
result.list.forEach(function(auth_type, i, arr) {
|
result.list.forEach(function(auth_type, i, arr) {
|
||||||
(function() {
|
var serverAuth = new com.jfoenix.controls.JFXComboBox();
|
||||||
|
serverAuth.getStyleClass().add("authOptions");
|
||||||
authOptions.getItems().add(auth_type.displayName);
|
authOptions.getItems().add(auth_type.displayName);
|
||||||
//var sm = authOptions.getSelectionModel();
|
authTypes[auth_type.displayName] = auth_type.name;
|
||||||
//sm.selectedIndexProperty()["addListener(javafx.beans.value.ChangeListener)"](settings.auth = i);
|
iter++;
|
||||||
})();
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
authOptions.getSelectionModel().select(0);
|
||||||
|
var sm = authOptions.getSelectionModel().selectedIndexProperty();
|
||||||
|
sm.addListener(new javafx.beans.value.ChangeListener({
|
||||||
|
changed: function (observableValue, oldSelection, newSelection) {
|
||||||
|
settings.auth = authTypes[authOptions.getSelectionModel().getSelectedItem()];
|
||||||
|
}
|
||||||
|
}));
|
||||||
overlay.swap(0, processing.overlay, function(event) makeProfilesRequest(function(result) {
|
overlay.swap(0, processing.overlay, function(event) makeProfilesRequest(function(result) {
|
||||||
settings.lastProfiles = result.profiles;
|
settings.lastProfiles = result.profiles;
|
||||||
updateProfilesList(result.profiles);
|
updateProfilesList(result.profiles);
|
||||||
|
@ -267,13 +283,14 @@ function verifyLauncher(e) {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
function doAuth(login, rsaPassword) {
|
function doAuth(login, rsaPassword, auth_type) {
|
||||||
processing.resetOverlay();
|
processing.resetOverlay();
|
||||||
overlay.show(processing.overlay, function (event) {
|
overlay.show(processing.overlay, function (event) {
|
||||||
FunctionalBridge.getHWID.join();
|
FunctionalBridge.getHWID.join();
|
||||||
makeAuthRequest(login, rsaPassword, function (result) {
|
makeAuthRequest(login, rsaPassword, auth_type, function (result) {
|
||||||
FunctionalBridge.setAuthParams(result);
|
FunctionalBridge.setAuthParams(result);
|
||||||
loginData = { pp: result.playerProfile , accessToken: result.accessToken, permissions: result.permissions};
|
loginData = { pp: result.playerProfile , accessToken: result.accessToken, permissions: result.permissions,
|
||||||
|
auth_type: settings.auth};
|
||||||
|
|
||||||
overlay.hide(0, function () {
|
overlay.hide(0, function () {
|
||||||
setCurrentScene(menuScene);
|
setCurrentScene(menuScene);
|
||||||
|
@ -403,6 +420,8 @@ var overlay = {
|
||||||
dimPane.setVisible(true);
|
dimPane.setVisible(true);
|
||||||
dimPane.toFront();
|
dimPane.toFront();
|
||||||
|
|
||||||
|
loginPaneLayout.setEffect(new javafx.scene.effect.GaussianBlur(10));
|
||||||
|
serverPaneLayout.setEffect(new javafx.scene.effect.GaussianBlur(10));
|
||||||
fade(dimPane, 0.0, 0.0, 1.0, function(event) {
|
fade(dimPane, 0.0, 0.0, 1.0, function(event) {
|
||||||
dimPane.requestFocus();
|
dimPane.requestFocus();
|
||||||
dimPane.getChildren().add(newOverlay);
|
dimPane.getChildren().add(newOverlay);
|
||||||
|
@ -423,6 +442,8 @@ var overlay = {
|
||||||
authPane.setDisable(false);
|
authPane.setDisable(false);
|
||||||
rootPane.requestFocus();
|
rootPane.requestFocus();
|
||||||
|
|
||||||
|
loginPaneLayout.setEffect(new javafx.scene.effect.GaussianBlur(0));
|
||||||
|
serverPaneLayout.setEffect(new javafx.scene.effect.GaussianBlur(0));
|
||||||
overlay.current = null;
|
overlay.current = null;
|
||||||
if (onFinished !== null) {
|
if (onFinished !== null) {
|
||||||
onFinished();
|
onFinished();
|
||||||
|
|
BIN
Launcher/runtime/dialog/images/downloader/blured.jpg
Normal file
BIN
Launcher/runtime/dialog/images/downloader/blured.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
|
@ -17,7 +17,6 @@ var processing = {
|
||||||
setError: function(e) {
|
setError: function(e) {
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
processing.description.textProperty().unbind();
|
processing.description.textProperty().unbind();
|
||||||
//processing.errorImage.setImage(processing.errorImage);
|
|
||||||
processing.description.getStyleClass().add("error");
|
processing.description.getStyleClass().add("error");
|
||||||
processing.description.setText(e.toString());
|
processing.description.setText(e.toString());
|
||||||
},
|
},
|
||||||
|
@ -48,8 +47,6 @@ function offlineAuthRequest(login) {
|
||||||
Request.requestError("Имя пользователя некорректно");
|
Request.requestError("Имя пользователя некорректно");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return offline profile and random access token
|
|
||||||
return {
|
return {
|
||||||
pp: PlayerProfile.newOfflineProfile(login),
|
pp: PlayerProfile.newOfflineProfile(login),
|
||||||
accessToken: SecurityHelper.randomStringToken()
|
accessToken: SecurityHelper.randomStringToken()
|
||||||
|
@ -57,18 +54,15 @@ function offlineAuthRequest(login) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Export functions */
|
|
||||||
function makeLauncherRequest(callback) {
|
function makeLauncherRequest(callback) {
|
||||||
var task = settings.offline ? newTask(FunctionalBridge.offlineLauncherRequest) :
|
var task = settings.offline ? newTask(FunctionalBridge.offlineLauncherRequest) :
|
||||||
newRequestTask(new LauncherRequest());
|
newRequestTask(new LauncherRequest());
|
||||||
|
|
||||||
// Set task properties and start
|
|
||||||
processing.setTaskProperties(task, callback, function() {
|
processing.setTaskProperties(task, callback, function() {
|
||||||
if (settings.offline) {
|
if (settings.offline) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Repeat request, but in offline mode
|
|
||||||
settings.offline = true;
|
settings.offline = true;
|
||||||
overlay.swap(2500, processing.overlay, function() makeLauncherRequest(callback));
|
overlay.swap(2500, processing.overlay, function() makeLauncherRequest(callback));
|
||||||
}, false);
|
}, false);
|
||||||
|
@ -78,13 +72,11 @@ function makeLauncherRequest(callback) {
|
||||||
function makeProfilesRequest(callback) {
|
function makeProfilesRequest(callback) {
|
||||||
var task = newRequestTask(new ProfilesRequest());
|
var task = newRequestTask(new ProfilesRequest());
|
||||||
|
|
||||||
// Set task properties and start
|
|
||||||
processing.setTaskProperties(task, callback, function() {
|
processing.setTaskProperties(task, callback, function() {
|
||||||
if (settings.offline) {
|
if (settings.offline) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Repeat request, but in offline mode
|
|
||||||
settings.offline = true;
|
settings.offline = true;
|
||||||
overlay.swap(2500, processing.overlay, function() makeProfilesRequest(callback));
|
overlay.swap(2500, processing.overlay, function() makeProfilesRequest(callback));
|
||||||
}, false);
|
}, false);
|
||||||
|
@ -94,7 +86,6 @@ function makeProfilesRequest(callback) {
|
||||||
function makeAuthAvailabilityRequest(callback) {
|
function makeAuthAvailabilityRequest(callback) {
|
||||||
var task = newRequestTask(new GetAvailabilityAuthRequest());
|
var task = newRequestTask(new GetAvailabilityAuthRequest());
|
||||||
|
|
||||||
// Set task properties and start
|
|
||||||
processing.setTaskProperties(task, callback, function() {
|
processing.setTaskProperties(task, callback, function() {
|
||||||
if (settings.offline) {
|
if (settings.offline) {
|
||||||
return;
|
return;
|
||||||
|
@ -110,7 +101,6 @@ function makeAuthAvailabilityRequest(callback) {
|
||||||
function makeSetProfileRequest(profile, callback) {
|
function makeSetProfileRequest(profile, callback) {
|
||||||
var task = newRequestTask(new SetProfileRequest(profile));
|
var task = newRequestTask(new SetProfileRequest(profile));
|
||||||
|
|
||||||
// Set task properties and start
|
|
||||||
processing.setTaskProperties(task, callback, function() {
|
processing.setTaskProperties(task, callback, function() {
|
||||||
if (settings.offline) {
|
if (settings.offline) {
|
||||||
return;
|
return;
|
||||||
|
@ -124,9 +114,9 @@ function makeSetProfileRequest(profile, callback) {
|
||||||
startTask(task);
|
startTask(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeAuthRequest(login, rsaPassword, callback) {
|
function makeAuthRequest(login, rsaPassword, auth_type, callback) {
|
||||||
var task = rsaPassword === null ? newTask(offlineAuthRequest(login)) :
|
var task = rsaPassword === null ? newTask(offlineAuthRequest(login)) :
|
||||||
newRequestTask(new AuthRequest(login, rsaPassword, FunctionalBridge.getHWID()));
|
newRequestTask(new AuthRequest(login, rsaPassword, FunctionalBridge.getHWID(), auth_type));
|
||||||
processing.setTaskProperties(task, callback, null, true);
|
processing.setTaskProperties(task, callback, null, true);
|
||||||
task.updateMessage("Авторизация на сервере");
|
task.updateMessage("Авторизация на сервере");
|
||||||
startTask(task);
|
startTask(task);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#overlay {
|
#overlay {
|
||||||
-fx-background-color: transparent;
|
-fx-background-color: transparent;
|
||||||
-fx-background-size: cover;
|
-fx-background-size: cover;
|
||||||
-fx-background-image: url('../../images/background.jpg');
|
-fx-background-image: url('../../images/downloader/blured.jpg');
|
||||||
}
|
}
|
||||||
|
|
||||||
#overlay > #utitle {
|
#overlay > #utitle {
|
||||||
|
@ -20,7 +20,7 @@ #overlay > #description.error {
|
||||||
}
|
}
|
||||||
|
|
||||||
.downloadPane {
|
.downloadPane {
|
||||||
-fx-background-color: rgba(0, 0, 0, 0.3);
|
-fx-background-color: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Progress bar */
|
/* Progress bar */
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
<!-- DrLeonardo Design -->
|
<!-- DrLeonardo Design -->
|
||||||
|
|
||||||
<Pane fx:id="overlay" prefHeight="450.0" prefWidth="693.0" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
<Pane fx:id="overlay" prefHeight="450.0" prefWidth="694.0" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
<children>
|
<children>
|
||||||
<Pane prefHeight="450.0" prefWidth="693.0" styleClass="downloadPane">
|
<Pane prefHeight="450.0" prefWidth="694.0" styleClass="downloadPane">
|
||||||
<children>
|
<children>
|
||||||
<Label fx:id="utitle" alignment="CENTER" layoutX="100.0" layoutY="125.0" prefHeight="30.0" prefWidth="495.0" text="Загрузка обновления..." textFill="WHITE">
|
<Label fx:id="utitle" alignment="CENTER" layoutX="100.0" layoutY="125.0" prefHeight="30.0" prefWidth="495.0" text="Загрузка обновления..." textFill="WHITE">
|
||||||
<font>
|
<font>
|
||||||
|
@ -23,7 +23,9 @@
|
||||||
<Font name="System Bold" size="16.0" />
|
<Font name="System Bold" size="16.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
</children></Pane>
|
</children>
|
||||||
|
</Pane>
|
||||||
|
<Pane id="mask" layoutX="-1.0" opacity="0.0" prefHeight="450.0" prefWidth="694.0" visible="false" />
|
||||||
</children>
|
</children>
|
||||||
<stylesheets>
|
<stylesheets>
|
||||||
<URL value="@update.css" />
|
<URL value="@update.css" />
|
||||||
|
|
|
@ -4,6 +4,9 @@ var update = {
|
||||||
initOverlay: function() {
|
initOverlay: function() {
|
||||||
update.overlay = loadFXML("dialog/overlay/update/update.fxml");
|
update.overlay = loadFXML("dialog/overlay/update/update.fxml");
|
||||||
|
|
||||||
|
//var updateLayout = update.overlay.lookup("#overlay");
|
||||||
|
//serverPaneLayout = updateLayout;
|
||||||
|
|
||||||
update.title = update.overlay.lookup("#utitle");
|
update.title = update.overlay.lookup("#utitle");
|
||||||
update.description = update.overlay.lookup("#description");
|
update.description = update.overlay.lookup("#description");
|
||||||
update.progress = update.overlay.lookup("#progress");
|
update.progress = update.overlay.lookup("#progress");
|
||||||
|
|
|
@ -14,9 +14,11 @@
|
||||||
|
|
||||||
<!-- DrLeonardo Design -->
|
<!-- DrLeonardo Design -->
|
||||||
|
|
||||||
<Pane fx:id="layout" prefWidth="740.0" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
<Pane fx:id="loginPane" prefWidth="740.0" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
<children>
|
<children>
|
||||||
<Pane fx:id="authPane" layoutX="422.0" prefHeight="411.0" prefWidth="286.0" styleClass="loginPane">
|
<Pane fx:id="layout" prefWidth="740.0">
|
||||||
|
<children>
|
||||||
|
<Pane fx:id="authPane" layoutX="424.0" prefHeight="411.0" prefWidth="286.0" styleClass="loginPane">
|
||||||
<children>
|
<children>
|
||||||
<Pane fx:id="logo" layoutX="72.0" layoutY="62.0" prefWidth="124.0" styleClass="logo">
|
<Pane fx:id="logo" layoutX="72.0" layoutY="62.0" prefWidth="124.0" styleClass="logo">
|
||||||
</Pane>
|
</Pane>
|
||||||
|
@ -24,16 +26,20 @@
|
||||||
<JFXPasswordField id="password" alignment="CENTER" focusColor="#5fd97a" layoutX="34.0" layoutY="249.0" promptText="Пароль" unFocusColor="#dadada" />
|
<JFXPasswordField id="password" alignment="CENTER" focusColor="#5fd97a" layoutX="34.0" layoutY="249.0" promptText="Пароль" unFocusColor="#dadada" />
|
||||||
<JFXButton id="goAuth" layoutX="34.0" layoutY="370.0" styleClass="auth" text="ВОЙТИ" />
|
<JFXButton id="goAuth" layoutX="34.0" layoutY="370.0" styleClass="auth" text="ВОЙТИ" />
|
||||||
<JFXCheckBox id="rememberchb" fx:id="savePassword" checkedColor="#5fd97a" contentDisplay="CENTER" layoutX="63.0" layoutY="297.0" prefWidth="144.0" text="Сохранить пароль" textFill="#dadada" unCheckedColor="#909090" />
|
<JFXCheckBox id="rememberchb" fx:id="savePassword" checkedColor="#5fd97a" contentDisplay="CENTER" layoutX="63.0" layoutY="297.0" prefWidth="144.0" text="Сохранить пароль" textFill="#dadada" unCheckedColor="#909090" />
|
||||||
<JFXComboBox id="authOptions" fx:id="authOptions" focusColor="#5fd97a" layoutX="34.0" layoutY="341.0" prefHeight="25.0" prefWidth="200.0" promptText="Авторизация 1" unFocusColor="#70666600">
|
<JFXComboBox id="authOptions" fx:id="authOptions" focusColor="#5fd97a" layoutX="34.0" layoutY="341.0" prefHeight="25.0" prefWidth="200.0" promptText="Способ авторизации" unFocusColor="#70666600">
|
||||||
<styleClass>
|
<styleClass>
|
||||||
<String fx:value="combologin" />
|
<String fx:value="combologin" />
|
||||||
<String fx:value="combologin-popup" />
|
<String fx:value="combologin-popup" />
|
||||||
</styleClass></JFXComboBox>
|
</styleClass>
|
||||||
|
</JFXComboBox>
|
||||||
<Hyperlink id="link" fx:id="link" layoutX="94.0" layoutY="422.0" prefHeight="19.0" prefWidth="81.0" textAlignment="CENTER" />
|
<Hyperlink id="link" fx:id="link" layoutX="94.0" layoutY="422.0" prefHeight="19.0" prefWidth="81.0" textAlignment="CENTER" />
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
<JFXMasonryPane fx:id="news" prefHeight="432.0" prefWidth="423.0" styleClass="news" />
|
<JFXMasonryPane fx:id="news" prefHeight="432.0" prefWidth="423.0" styleClass="news" />
|
||||||
<Pane fx:id="bar" layoutX="692.0" prefHeight="425.0" prefWidth="43.0" styleClass="bar">
|
</children>
|
||||||
|
</Pane>
|
||||||
|
<Pane id="mask" opacity="0.0" prefHeight="450.0" prefWidth="694.0" visible="false" />
|
||||||
|
<Pane fx:id="bar" layoutX="694.0" prefHeight="425.0" prefWidth="43.0" styleClass="bar">
|
||||||
<children>
|
<children>
|
||||||
<JFXButton id="hide" alignment="CENTER" contentDisplay="CENTER" layoutY="45.0" ripplerFill="#646464" text="" textAlignment="CENTER">
|
<JFXButton id="hide" alignment="CENTER" contentDisplay="CENTER" layoutY="45.0" ripplerFill="#646464" text="" textAlignment="CENTER">
|
||||||
<graphic>
|
<graphic>
|
||||||
|
@ -52,7 +58,6 @@
|
||||||
</JFXButton>
|
</JFXButton>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
<Pane id="mask" opacity="0.0" prefHeight="425.0" prefWidth="694.0" visible="false" />
|
|
||||||
</children>
|
</children>
|
||||||
<stylesheets>
|
<stylesheets>
|
||||||
<URL value="@../../styles.css" />
|
<URL value="@../../styles.css" />
|
||||||
|
|
|
@ -13,9 +13,11 @@
|
||||||
|
|
||||||
<!-- DrLeonardo Design -->
|
<!-- DrLeonardo Design -->
|
||||||
|
|
||||||
<Pane fx:id="layout" maxHeight="-1.0" maxWidth="-1.0" prefHeight="400.0" prefWidth="600.0" visible="true" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
<Pane fx:id="serverPaneLayout" maxHeight="-1.0" maxWidth="-1.0" prefWidth="740.0" visible="true" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
<children>
|
<children>
|
||||||
<Pane id="serverPane" prefHeight="450.0" prefWidth="693.0">
|
<Pane fx:id="layout" maxHeight="-1.0" maxWidth="-1.0" prefWidth="740.0" visible="true" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
|
<children>
|
||||||
|
<Pane id="serverPane" prefHeight="450.0" prefWidth="694.0">
|
||||||
<children>
|
<children>
|
||||||
<ScrollPane id="serverlist" hbarPolicy="NEVER" layoutX="1.0" prefHeight="450.0" prefWidth="307.0" visible="true">
|
<ScrollPane id="serverlist" hbarPolicy="NEVER" layoutX="1.0" prefHeight="450.0" prefWidth="307.0" visible="true">
|
||||||
<content>
|
<content>
|
||||||
|
@ -30,7 +32,7 @@
|
||||||
</FlowPane>
|
</FlowPane>
|
||||||
</content>
|
</content>
|
||||||
</ScrollPane>
|
</ScrollPane>
|
||||||
<Pane id="serverentrance" layoutX="306.0" prefHeight="425.0" prefWidth="388.0" styleClass="serverentrance">
|
<Pane id="serverentrance" layoutX="308.0" prefHeight="425.0" prefWidth="388.0" styleClass="serverentrance">
|
||||||
<children>
|
<children>
|
||||||
<ScrollPane id="serverinfo" hbarPolicy="NEVER" layoutX="4.0" layoutY="53.0" pannable="true" prefHeight="322.0" prefWidth="381.0" visible="true">
|
<ScrollPane id="serverinfo" hbarPolicy="NEVER" layoutX="4.0" layoutY="53.0" pannable="true" prefHeight="322.0" prefWidth="381.0" visible="true">
|
||||||
<content>
|
<content>
|
||||||
|
@ -68,7 +70,9 @@
|
||||||
</Pane>
|
</Pane>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
<Pane fx:id="bar" layoutX="692.0" prefHeight="425.0" prefWidth="43.0" styleClass="bar">
|
</children>
|
||||||
|
</Pane>
|
||||||
|
<Pane fx:id="bar" layoutX="694.0" prefHeight="425.0" prefWidth="43.0" styleClass="bar">
|
||||||
<children>
|
<children>
|
||||||
<JFXButton id="hide" alignment="CENTER" contentDisplay="CENTER" layoutY="45.0" ripplerFill="#646464" text="" textAlignment="CENTER">
|
<JFXButton id="hide" alignment="CENTER" contentDisplay="CENTER" layoutY="45.0" ripplerFill="#646464" text="" textAlignment="CENTER">
|
||||||
<graphic>
|
<graphic>
|
||||||
|
@ -97,7 +101,7 @@
|
||||||
</JFXButton>
|
</JFXButton>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
<Pane id="mask" opacity="0.0" prefHeight="425.0" prefWidth="694.0" visible="false" />
|
<Pane id="mask" opacity="0.0" prefHeight="450.0" prefWidth="694.0" visible="false" />
|
||||||
</children>
|
</children>
|
||||||
<stylesheets>
|
<stylesheets>
|
||||||
<URL value="@../../styles.css" />
|
<URL value="@../../styles.css" />
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<?import com.jfoenix.controls.JFXButton?>
|
<?import com.jfoenix.controls.JFXButton?>
|
||||||
<?import com.jfoenix.controls.JFXToggleButton?>
|
|
||||||
<?import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIconView?>
|
<?import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIconView?>
|
||||||
<?import java.net.URL?>
|
<?import java.net.URL?>
|
||||||
<?import javafx.geometry.Insets?>
|
<?import javafx.geometry.Insets?>
|
||||||
|
@ -9,20 +8,19 @@
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<?import javafx.scene.shape.Line?>
|
<?import javafx.scene.shape.Line?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
<?import javafx.scene.text.Text?>
|
||||||
|
|
||||||
<!-- DrLeonardo Design -->
|
<!-- DrLeonardo Design -->
|
||||||
|
|
||||||
<Pane fx:id="background" prefHeight="450.0" prefWidth="738.0" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
<Pane fx:id="background" prefHeight="450.0" prefWidth="740.0" xmlns="http://javafx.com/javafx/8.0.201" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
<children>
|
<children>
|
||||||
<Pane id="optionsPane" prefHeight="450.0" prefWidth="692.0" styleClass="optionsPane">
|
<Pane id="optionsPane" prefHeight="450.0" prefWidth="692.0" styleClass="optionsPane">
|
||||||
<children>
|
<children>
|
||||||
<JFXToggleButton fx:id="presset" layoutX="30.0" layoutY="10.0" opacity="0.21" styleClass="pressetLight" text="Presset 1" />
|
<Line endX="595.0" layoutX="100.0" layoutY="46.0" startX="-100.0" stroke="#5b3636" styleClass="lineHead" />
|
||||||
<JFXToggleButton fx:id="presset" layoutX="287.0" layoutY="10.0" opacity="0.21" styleClass="pressetMedium" text="Presset 2" />
|
<ScrollPane id="modlist" layoutY="46.0" prefHeight="402.0" prefWidth="693.0">
|
||||||
<JFXToggleButton fx:id="isPresset" layoutX="528.0" layoutY="10.0" opacity="0.21" prefHeight="58.0" prefWidth="134.0" styleClass="pressetHigh" text="Presset 3" wrapText="true" />
|
|
||||||
<Line endX="595.0" layoutX="100.0" layoutY="80.0" startX="-100.0" stroke="#5b3636" styleClass="lineHead" />
|
|
||||||
<ScrollPane id="modlist" layoutY="84.0" prefHeight="364.0" prefWidth="693.0">
|
|
||||||
<content>
|
<content>
|
||||||
<VBox prefHeight="360.0" prefWidth="678.0">
|
<VBox prefHeight="397.0" prefWidth="678.0">
|
||||||
<children>
|
<children>
|
||||||
</children>
|
</children>
|
||||||
<padding>
|
<padding>
|
||||||
|
@ -31,9 +29,14 @@
|
||||||
</VBox>
|
</VBox>
|
||||||
</content>
|
</content>
|
||||||
</ScrollPane>
|
</ScrollPane>
|
||||||
|
<Text fill="#393939" layoutX="15.0" layoutY="28.0" strokeType="OUTSIDE" strokeWidth="0.0" text="ОПЦИОНАЛЬНЫЕ МОДИФИКАЦИИ" wrappingWidth="265.904296875">
|
||||||
|
<font>
|
||||||
|
<Font name="System Bold" size="13.0" />
|
||||||
|
</font>
|
||||||
|
</Text>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
<Pane fx:id="bar" layoutX="692.0" prefHeight="425.0" prefWidth="43.0" styleClass="bar">
|
<Pane fx:id="bar" layoutX="694.0" prefHeight="425.0" prefWidth="43.0" styleClass="bar">
|
||||||
<children>
|
<children>
|
||||||
<JFXButton id="hide" alignment="CENTER" contentDisplay="CENTER" layoutY="45.0" ripplerFill="#646464" text="" textAlignment="CENTER">
|
<JFXButton id="hide" alignment="CENTER" contentDisplay="CENTER" layoutY="45.0" ripplerFill="#646464" text="" textAlignment="CENTER">
|
||||||
<graphic>
|
<graphic>
|
||||||
|
|
|
@ -32,9 +32,7 @@ #serverStatus{
|
||||||
|
|
||||||
/* Mask */
|
/* Mask */
|
||||||
#mask {
|
#mask {
|
||||||
-fx-background-color: rgba(0, 0, 0, 0.5);
|
-fx-effect: DropShadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
|
||||||
-fx-pref-width: 692px;
|
|
||||||
-fx-pref-height: 450px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Errors **/
|
/** Errors **/
|
||||||
|
@ -193,7 +191,7 @@ .combologin-popup .list-view {
|
||||||
|
|
||||||
.combologin .list-cell:filled:selected .text,
|
.combologin .list-cell:filled:selected .text,
|
||||||
.combologin .list-cell:filled:selected .text {
|
.combologin .list-cell:filled:selected .text {
|
||||||
-fx-fill: #909090;
|
-fx-fill: #323232;
|
||||||
}
|
}
|
||||||
|
|
||||||
.combologin .arrow,
|
.combologin .arrow,
|
||||||
|
@ -210,13 +208,13 @@ .combologin-popup .list-view .list-cell:filled:selected, .combologin-popup .list
|
||||||
{
|
{
|
||||||
-fx-background: -fx-accent;
|
-fx-background: -fx-accent;
|
||||||
-fx-background-color: -fx-selection-bar;
|
-fx-background-color: -fx-selection-bar;
|
||||||
-fx-text-fill: -fx-selection-bar-text;
|
-fx-text-fill: #909090;
|
||||||
}
|
}
|
||||||
|
|
||||||
.combologin-popup .list-view .list-cell:filled:hover
|
.combologin-popup .list-view .list-cell:filled:hover
|
||||||
{
|
{
|
||||||
-fx-background-color: white;
|
-fx-background-color: white;
|
||||||
-fx-text-fill: -fx-text-inner-color;
|
-fx-text-fill: #909090;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** web**/
|
/** web**/
|
||||||
|
|
Loading…
Reference in a new issue