Skip to content

Commit bbc63b6

Browse files
authored
V2.0.5 (#31)
* add qtile icon * add login screen and fade transition
1 parent 6252331 commit bbc63b6

File tree

6 files changed

+38
-1
lines changed

6 files changed

+38
-1
lines changed

assets/sessions/qtile.png

19.8 KB
Loading

css/screens.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,18 @@
130130
text-align: center;
131131
color: var(--global-fg);
132132
}
133+
134+
#screen-dark {
135+
background-color: #000000;
136+
opacity: 0;
137+
pointer-events: none;
138+
z-index: 25;
139+
transition:
140+
opacity var(--global-animation-speed),
141+
pointer-events var(--global-animation-speed);
142+
}
143+
144+
#screen-dark.screen-dark-show {
145+
opacity: 1;
146+
pointer-events: unset;
147+
}

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</head>
99
<body>
1010
<div class='body-background background'></div>
11+
<div class='screen' id='screen-dark'></div>
1112
<div class='screen background screen-image screen-background-darken' id='screen-greeter'>
1213
<div class='screen-content-parent' id='screen-greeter-content-parent'>
1314
<div id='greeter-message' class='greeter-content'></div>
@@ -300,6 +301,7 @@
300301
<script type='text/javascript' src='js/user-profile.js'></script>
301302
<script type='text/javascript' src='js/authenticate.js'></script>
302303
<script type='text/javascript' src='js/greeter.js'></script>
304+
<script type='text/javascript' src='js/login-fade.js'></script>
303305
<script type='text/javascript' src='js/goodbye.js'></script>
304306
<script type='text/javascript' src='js/accounts.js'></script>
305307
<script type='text/javascript' src='js/sessions.js'></script>

js/authenticate.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,21 @@ class Authenticate {
7878
this._tooltipPassword.innerText = this._returnRandomSuccessfulMessages();
7979
this._tooltipPassword.classList.add('tooltip-success');
8080

81+
setTimeout(
82+
() => {
83+
loginFade.showLoginFade();
84+
},
85+
500
86+
);
87+
8188
// Add a delay before unlocking
8289
setTimeout(
8390
() => {
8491
this._buttonAuthenticate.classList.remove('authentication-success');
8592
lightdm.start_session_sync(String(sessions.getDefaultSession()));
8693
this._tooltipPassword.classList.remove('tooltip-success');
8794
},
88-
1500
95+
1000
8996
);
9097
}
9198

js/login-fade.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class LoginFade {
2+
constructor() {
3+
this._goodbyeScreen = document.querySelector('#screen-dark.screen');
4+
}
5+
6+
showLoginFade(icon, message) {
7+
this._goodbyeScreen.classList.add('screen-dark-show');
8+
this._goodbyeScreenVisible = true;
9+
}
10+
}

js/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const userProfile = new UserProfile();
77
// Instantiate greeter screen
88
const greeterScreen = new GreeterScreen();
99

10+
// Instantiate dark screen
11+
const loginFade = new LoginFade();
12+
1013
// Instantiate goodbye screen
1114
const goodbye = new Goodbye();
1215

0 commit comments

Comments
 (0)