Skip to content

Commit

Permalink
V2.0.5 (#31)
Browse files Browse the repository at this point in the history
* add qtile icon

* add login screen and fade transition
  • Loading branch information
eromatiya authored Sep 23, 2020
1 parent 6252331 commit bbc63b6
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 1 deletion.
Binary file added assets/sessions/qtile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions css/screens.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,18 @@
text-align: center;
color: var(--global-fg);
}

#screen-dark {
background-color: #000000;
opacity: 0;
pointer-events: none;
z-index: 25;
transition:
opacity var(--global-animation-speed),
pointer-events var(--global-animation-speed);
}

#screen-dark.screen-dark-show {
opacity: 1;
pointer-events: unset;
}
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</head>
<body>
<div class='body-background background'></div>
<div class='screen' id='screen-dark'></div>
<div class='screen background screen-image screen-background-darken' id='screen-greeter'>
<div class='screen-content-parent' id='screen-greeter-content-parent'>
<div id='greeter-message' class='greeter-content'></div>
Expand Down Expand Up @@ -300,6 +301,7 @@
<script type='text/javascript' src='js/user-profile.js'></script>
<script type='text/javascript' src='js/authenticate.js'></script>
<script type='text/javascript' src='js/greeter.js'></script>
<script type='text/javascript' src='js/login-fade.js'></script>
<script type='text/javascript' src='js/goodbye.js'></script>
<script type='text/javascript' src='js/accounts.js'></script>
<script type='text/javascript' src='js/sessions.js'></script>
Expand Down
9 changes: 8 additions & 1 deletion js/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,21 @@ class Authenticate {
this._tooltipPassword.innerText = this._returnRandomSuccessfulMessages();
this._tooltipPassword.classList.add('tooltip-success');

setTimeout(
() => {
loginFade.showLoginFade();
},
500
);

// Add a delay before unlocking
setTimeout(
() => {
this._buttonAuthenticate.classList.remove('authentication-success');
lightdm.start_session_sync(String(sessions.getDefaultSession()));
this._tooltipPassword.classList.remove('tooltip-success');
},
1500
1000
);
}

Expand Down
10 changes: 10 additions & 0 deletions js/login-fade.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class LoginFade {
constructor() {
this._goodbyeScreen = document.querySelector('#screen-dark.screen');
}

showLoginFade(icon, message) {
this._goodbyeScreen.classList.add('screen-dark-show');
this._goodbyeScreenVisible = true;
}
}
3 changes: 3 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const userProfile = new UserProfile();
// Instantiate greeter screen
const greeterScreen = new GreeterScreen();

// Instantiate dark screen
const loginFade = new LoginFade();

// Instantiate goodbye screen
const goodbye = new Goodbye();

Expand Down

0 comments on commit bbc63b6

Please sign in to comment.