Browse Source

change bootstrap skin to paper. remove top and bottom padding from user list items. Fixed #9. renamed var to use javascript style.

sisyphus
Dustin Falgout 10 years ago
parent
commit
0dd75d48e0
  1. 7175
      themes/antergos/css/bootstrap/bootstrap.css
  2. 5
      themes/antergos/css/bootstrap/theme.css
  3. 15
      themes/antergos/js/greeter.js
  4. 4
      themes/antergos/js/mock.js

7175
themes/antergos/css/bootstrap/bootstrap.css vendored

File diff suppressed because it is too large Load Diff

5
themes/antergos/css/bootstrap/theme.css vendored

@ -541,7 +541,6 @@ matches your images. */
max-width: 50%; max-width: 50%;
margin: 0 auto; margin: 0 auto;
display: -webkit-box; display: -webkit-box;
max-height: 124px;
overflow: auto; overflow: auto;
} }
@ -588,3 +587,7 @@ padding: 0px;
padding-top: 18px; padding-top: 18px;
} }
} }
.list-group-item {
padding: 0px 15px;
}

15
themes/antergos/js/greeter.js

@ -1,6 +1,6 @@
var DEBUG = true; var DEBUG = true;
var selectedUser = null; var selectedUser = null;
var auth_pending = null; var authPending = null;
var users_shown = null; var users_shown = null;
function buildUserList() { function buildUserList() {
@ -131,15 +131,15 @@ function checkKey(event) {
var action; var action;
switch (event.which) { switch (event.which) {
case 13: case 13:
action = auth_pending ? submitPassword() : !users_shown ? show_users() : 0; action = authPending ? submitPassword() : !users_shown ? show_users() : 0;
log(action); log(action);
break; break;
case 27: case 27:
action = auth_pending ? cancelAuthentication() : 0; action = authPending ? cancelAuthentication() : 0;
log(action); log(action);
break; break;
case 32: case 32:
action = !users_shown && !auth_pending ? show_users() : 0; action = !users_shown && !authPending ? show_users() : 0;
log(action); log(action);
break; break;
default: default:
@ -223,8 +223,9 @@ function startAuthentication(userId) {
$('.selected').html(usrSessionName); $('.selected').html(usrSessionName);
$('.selected').attr('id', usrSession); $('.selected').attr('id', usrSession);
$('#session-list').removeClass('hidden'); $('#session-list').removeClass('hidden');
$('#session-list').show();
$('#passwordArea').show(); $('#passwordArea').show();
auth_pending = true; authPending = true;
lightdm.start_authentication(userId); lightdm.start_authentication(userId);
} }
@ -241,7 +242,7 @@ function cancelAuthentication() {
$('.list-group-item.hovered').removeClass('hovered').siblings().show(); $('.list-group-item.hovered').removeClass('hovered').siblings().show();
$('.fa-toggle-down').show(); $('.fa-toggle-down').show();
selectedUser = null; selectedUser = null;
auth_pending = false; authPending = false;
} }
return true; return true;
} }
@ -285,7 +286,7 @@ function show_prompt(text) {
function authentication_complete() { function authentication_complete() {
log("authentication_complete()"); log("authentication_complete()");
auth_pending = false; authPending = false;
$('#timerArea').hide(); $('#timerArea').hide();
var selSession = $('.selected').attr('id'); var selSession = $('.selected').attr('id');
if (lightdm.is_authenticated) { if (lightdm.is_authenticated) {

4
themes/antergos/js/mock.js

@ -7,9 +7,9 @@ if (typeof lightdm == 'undefined') {
lightdm.layouts= [{name: "test", short_description: "test description", short_description:"really long epic description"}]; lightdm.layouts= [{name: "test", short_description: "test description", short_description:"really long epic description"}];
lightdm.default_layout= lightdm.layouts[0]; lightdm.default_layout= lightdm.layouts[0];
lightdm.layout= lightdm.layouts[0]; lightdm.layout= lightdm.layouts[0];
lightdm.sessions=[{key: "key1", name: "gnome", comment: "no comment"}, {key: "key2", name: "cinnamon", comment: "no comment"},{key: "key3", name: "openbox", comment: "no comment"}, {key: "key4", name: "kde", comment: "no comment"}]; lightdm.sessions=[{key: "gnome", name: "gnome", comment: "no comment"}, {key: "cinnamon", name: "cinnamon", comment: "no comment"},{key: "openbox", name: "openbox", comment: "no comment"}, {key: "key4", name: "kde", comment: "no comment"}];
lightdm.default_session=lightdm.sessions[0]; lightdm.default_session=lightdm.sessions[0]['name'];
lightdm.authentication_user= null; lightdm.authentication_user= null;
lightdm.is_authenticated= false; lightdm.is_authenticated= false;
lightdm.can_suspend= true; lightdm.can_suspend= true;

Loading…
Cancel
Save