Fixes for the overlay on the settings UI.

The background of the settings UI is set to transparent when the overlay is toggled.
The color of the frame bar has been adjusted to what it should actually be.
This commit is contained in:
Daniel Scalzi
2018-06-21 20:54:07 -04:00
parent c0714ecbc6
commit 9769458499
3 changed files with 31 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ const VIEWS = {
}
// The currently shown view container.
let currentView = VIEWS.landing
let currentView
/**
* Switch launcher views.
@@ -63,7 +63,7 @@ function showMainUI(){
updateSelectedServer(AssetGuard.getServerById(ConfigManager.getSelectedServer()).name)
refreshServerStatus()
setTimeout(() => {
document.getElementById('frameBar').style.backgroundColor = 'rgba(1, 2, 1, 0.5)'
document.getElementById('frameBar').style.backgroundColor = 'rgba(0, 0, 0, 0.5)'
document.body.style.backgroundImage = `url('assets/images/backgrounds/${document.body.getAttribute('bkid')}.jpg')`
$('#main').show()
@@ -82,11 +82,14 @@ function showMainUI(){
}
if(ConfigManager.isFirstLaunch()){
currentView = VIEWS.welcome
$(VIEWS.welcome).fadeIn(1000)
} else {
if(isLoggedIn){
currentView = VIEWS.landing
$(VIEWS.landing).fadeIn(1000)
} else {
currentView = VIEWS.login
$(VIEWS.login).fadeIn(1000)
}
}