launcher: fix session window opening, change menu button color to primary

This commit is contained in:
Bixilon 2020-12-24 13:15:32 +01:00
parent 107a2bb5ac
commit e85434d6b5
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 4 additions and 4 deletions

View File

@ -417,7 +417,7 @@ public class ServerListCell extends ListCell<Server> implements Initializable {
public void manageSessions() {
try {
SessionsWindow sessionsWindow = GUITools.showPane("/layout/dialogs/login_mojang.fxml", Modality.APPLICATION_MODAL, LocaleManager.translate(Strings.SESSIONS_DIALOG_TITLE, this.server.getName()));
SessionsWindow sessionsWindow = GUITools.showPane("/layout/sessions.fxml", Modality.APPLICATION_MODAL, LocaleManager.translate(Strings.SESSIONS_DIALOG_TITLE, this.server.getName().getMessage()));
sessionsWindow.setServer(this.server);
} catch (IOException e) {
e.printStackTrace();

View File

@ -79,11 +79,11 @@
}
.list-cell:selected {
-fx-background-color: #03111f;
-fx-background-color: -secondary-dark-color;
}
.list-cell:filled:hover {
-fx-background-color: #566171;
-fx-background-color: -secondary-light-color;
}
.menu-bar {
@ -108,7 +108,7 @@
}
.menu-button {
-fx-background-color: -secondary-light-color;
-fx-background-color: -primary-dark-color;
-fx-text-fill: -secondary-text-color;
}