URGENT FIX

Fixed an issue that caused the login token to become invalid on using another launcher
Fixed an issue that prevented you from logging out
Removed Logo Seal from the login screen (Un necessary placement)
Made the status colours easy to understand. (Brighter and more vibrant colours.
This commit is contained in:
Peter 2021-07-17 16:13:18 +01:00
parent 71123b55a9
commit 14e266c556
4 changed files with 219 additions and 224 deletions

View File

@ -67,14 +67,14 @@ const statuses = [
exports.statusToHex = function(status){ exports.statusToHex = function(status){
switch(status.toLowerCase()){ switch(status.toLowerCase()){
case 'green': case 'green':
return '#a5c325' return '#4DDD19'
case 'yellow': case 'yellow':
return '#eac918' return '#FFE300'
case 'red': case 'red':
return '#c32625' return '#c32625'
case 'grey': case 'grey':
default: default:
return '#848484' return '#3B3B3B'
} }
} }

View File

@ -396,20 +396,6 @@ ipcRenderer.on('MSALoginWindowReply', (event, ...args) => {
// Temporary workaround // Temporary workaround
if (loginViewOnSuccess === VIEWS.settings) { if (loginViewOnSuccess === VIEWS.settings) {
prepareSettings() prepareSettings()
if(hasRPC){
DiscordWrapper.updateDetails('In the Settings...')
DiscordWrapper.clearState()
}
} else {
if(hasRPC){
if(ConfigManager.getSelectedServer()){
const serv = DistroManager.getDistribution().getServer(ConfigManager.getSelectedServer())
DiscordWrapper.updateDetails('Ready to Play!')
DiscordWrapper.updateState('Modpack: ' + serv.getName())
} else {
DiscordWrapper.updateDetails('Landing Screen...')
}
}
} }
loginViewOnSuccess = VIEWS.landing // Reset this for good measure. loginViewOnSuccess = VIEWS.landing // Reset this for good measure.
loginCancelEnabled(false) // Reset this for good measure. loginCancelEnabled(false) // Reset this for good measure.

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,7 @@
</div> </div>
<div id="loginContent"> <div id="loginContent">
<form id="loginForm"> <form id="loginForm">
<img id="loginImageSeal" src="assets/images/SealCircle.png" /> <span id="loginSubheader">MOJANG LOGIN</span>
<span id="loginSubheader">MINECRAFT LOGIN</span>
<div class="loginFieldContainer"> <div class="loginFieldContainer">
<svg id="profileSVG" class="loginSVG" viewBox="40 37 65.36 61.43"> <svg id="profileSVG" class="loginSVG" viewBox="40 37 65.36 61.43">
<g> <g>