Browse Source

:triumphant:

sisyphus
Dustin Falgout 9 years ago
parent
commit
4a0c584099
  1. 6
      themes/antergos/README.textile
  2. 1281
      themes/antergos/css/bootstrap/bootstrap.min.css
  3. 18
      themes/antergos/css/bootstrap/theme.css
  4. 17
      themes/antergos/index.html
  5. 2
      themes/antergos/index.theme
  6. 21
      themes/antergos/js/greeter.js

6
themes/antergos/README.textile

@ -60,11 +60,7 @@ You may also want to :
h1. User icons management h1. User icons management
To change users icons, there are two options : To change users icons:
* Create a @.face@ file in the user's home folder in which you put a @jpg@ or @png@ resource
Or
* Create a resource named with the user's login in @/var/lib/AccountsService/icons/@ * Create a resource named with the user's login in @/var/lib/AccountsService/icons/@
* Edit @/var/lib/AccountsService/users/<userLogin>@ and add a property @Icon@ targeting the icon resource you just created * Edit @/var/lib/AccountsService/users/<userLogin>@ and add a property @Icon@ targeting the icon resource you just created

1281
themes/antergos/css/bootstrap/bootstrap.min.css vendored

File diff suppressed because one or more lines are too long

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

@ -208,6 +208,10 @@ a {
background-position: center !important; background-position: center !important;
} }
#user-target2 {
position: relative;
}
#user-target2 i { #user-target2 i {
right: -21px; right: -21px;
color: #2C3E50; color: #2C3E50;
@ -288,7 +292,7 @@ a {
min-height: 275px; min-height: 275px;
} }
#panel-fix .panel-shadow, .panel-group { #panel-fix .panel-shadow, .panel-group, .panel-shadow {
box-shadow: none !important; box-shadow: none !important;
border: none !important; border: none !important;
} }
@ -359,10 +363,12 @@ div.password, div.status, div.timer {
margin: 0 auto; margin: 0 auto;
} }
.password.form-control { #passwordField {
font-size: 14px !important; margin-left: 1px;
height: 37px; }
width: 74% !important;
.input-group-btn {
width: auto;
} }
input.password.form-control:focus { input.password.form-control:focus {
@ -442,7 +448,7 @@ input.password.form-control:focus {
max-width: 50%; max-width: 50%;
margin: 0 auto; margin: 0 auto;
display: -webkit-box; display: -webkit-box;
overflow: auto; overflow: visible;
} }
#list-group { #list-group {

17
themes/antergos/index.html

@ -106,6 +106,7 @@
if (localStorage.getItem("bgrandom") == null) { if (localStorage.getItem("bgrandom") == null) {
localStorage.setItem("bgrandom", "1"); localStorage.setItem("bgrandom", "1");
} }
$('.dropdown-toggle').dropdown();
}); });
function showAlert() { function showAlert() {
@ -202,7 +203,7 @@
</span> <span class="welcome">Welcome!</span> </span> <span class="welcome">Welcome!</span>
<span id="hostname" class="pull-right"></span> <span id="hostname" class="pull-right"></span>
</div> </div>
<div id="panelfix" class="panel-body"> <div id="panelfix" class="panel-body panel-shadow">
<div class="panel-group" id="accordion"> <div class="panel-group" id="accordion">
<div class="panel panel-default panel-shadow time-panel"> <div class="panel panel-default panel-shadow time-panel">
@ -220,8 +221,8 @@
</div> </div>
<div class="panel panel-default panel-shadow panel-flow"> <div class="panel panel-default panel-shadow panel-flow">
<!-- User Selection Widget --> <!-- User Selection Widget -->
<div id="collapseTwo" class="panel-collapse collapse"> <div id="collapseTwo" class="panel-collapse panel-shadow collapse">
<div id="list-group" class="panel-body panel-wrap"> <div id="list-group" class="panel-body panel-shadow panel-wrap">
<div class="user-wrap2"> <div class="user-wrap2">
@ -289,6 +290,10 @@
</div> </div>
</div> </div>
<!-- This is a hack to work-around webkit2gtk glitches with drawing on screen.
The spinner animation makes GTK constantly repaint the screen which prevents
WSOD (White Screen Of Death) -->
<i class="fa fa-spinner fa-spin" style="color: transparent"></i>
</div> </div>
</div> </div>
@ -299,7 +304,7 @@
<div id="session-list" class="btn-group pull-left hidden"> <div id="session-list" class="btn-group pull-left hidden">
<button type="button" class="btn btn-default selected"></button> <button type="button" class="btn btn-default selected"></button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-caret-down"></i></button> <span class="fa fa-caret-down"></span></button>
<ul id="sessions" class="dropdown-menu"></ul> <ul id="sessions" class="dropdown-menu"></ul>
</div> </div>
<div id="actionsArea" class="btn-group pull-right"></div> <div id="actionsArea" class="btn-group pull-right"></div>
@ -338,13 +343,13 @@
}); });
$('#collapseTwo').on('shown.bs.collapse', function () { $('#collapseTwo').on('shown.bs.collapse', function () {
$('#collapseTwo a').each(function (index) { $('#collapseTwo a').filter(':not(.dropdown-menu *)').each(function (index) {
var i = index + 1; var i = index + 1;
$(this).attr('tabindex', i); $(this).attr('tabindex', i);
}); });
}); });
$('#collapseTwo').on('hidden.bs.collapse', function () { $('#collapseTwo').on('hidden.bs.collapse', function () {
$('#collapseTwo a').each(function (index) { $('#collapseTwo a').filter(':not(.dropdown-menu *)').each(function (index) {
$(this).attr('tabindex', -1); $(this).attr('tabindex', -1);
}); });
}); });

2
themes/antergos/index.theme

@ -1,6 +1,6 @@
[theme] [theme]
name=Antergos name=Antergos
version=2.2 version=2.3
description=Antergos Theme description=Antergos Theme
engine=lightdm-webkit2-greeter engine=lightdm-webkit2-greeter
url=index.html url=index.html

21
themes/antergos/js/greeter.js

@ -63,25 +63,26 @@ $(document).ready(function () {
'<span class="badge"><i class="fa fa-check"></i></span>' + '<span class="badge"><i class="fa fa-check"></i></span>' +
'</a>'; '</a>';
$(userList).append(li); $(userList).append(li);
if ($(userList).children().length > 3) { }
if ($(userList).children().length > 3) {
$(userList).css('column-count', '2'); $(userList).css('column-count', '2');
$(userList).parent().css('max-width', '85%'); $(userList).parent().css('max-width', '85%');
} }
}
} }
function buildSessionList() { function buildSessionList() {
// Build Session List // Build Session List
var btnGrp = $('#sessions');
for (var i in lightdm.sessions) { for (var i in lightdm.sessions) {
var session = lightdm.sessions[i]; var session = lightdm.sessions[i];
var btnGrp = document.getElementById('sessions');
var theClass = session.name.replace(/ /g, ''); var theClass = session.name.replace(/ /g, '');
var button = '\n<li><a href="#" id="' + session.key + '" onclick="sessionToggle(this)" class="' + theClass + '">' + session.name + '</a></li>'; var button = '\n<li><a href="#" data-session-id="' + session.key + '" onclick="sessionToggle(this)" class="' + theClass + '">' + session.name + '</a></li>';
$(btnGrp).append(button); $(btnGrp).append(button);
} }
$('.dropdown-toggle').dropdown();
} }
function show_users() { function show_users() {
@ -93,6 +94,8 @@ $(document).ready(function () {
} }
$(window).load(function() {
/** /**
* UI Initialization. * UI Initialization.
*/ */
@ -113,6 +116,7 @@ $(document).ready(function () {
addActionLink("hibernate"); addActionLink("hibernate");
addActionLink("suspend"); addActionLink("suspend");
addActionLink("restart"); addActionLink("restart");
});
function get_hostname() { function get_hostname() {
var hostname = lightdm.hostname; var hostname = lightdm.hostname;
@ -268,14 +272,15 @@ $(document).ready(function () {
var usrSession = localStorage.getItem(userId); var usrSession = localStorage.getItem(userId);
log("usrSession: " + usrSession); log("usrSession: " + usrSession);
var usrSessionEl = "#" + usrSession; var usrSessionEl = "[data-session-id=" + usrSession + "]";
var usrSessionName = $(usrSessionEl).html(); var usrSessionName = $(usrSessionEl).html();
log("usrSessionName: " + usrSessionName); log("usrSessionName: " + usrSessionName);
$('.selected').html(usrSessionName); $('.selected').html(usrSessionName);
$('.selected').attr('id', usrSession); $('.selected').attr('data-session-id', usrSession);
$('#session-list').removeClass('hidden'); $('#session-list').removeClass('hidden');
$('#session-list').show(); $('#session-list').show();
$('#passwordArea').show(); $('#passwordArea').show();
$('.dropdown-toggle').dropdown();
authPending = true; authPending = true;
lightdm.start_authentication(userId); lightdm.start_authentication(userId);
@ -320,9 +325,9 @@ $(document).ready(function () {
window.sessionToggle = function (el) { window.sessionToggle = function (el) {
var selText = $(el).text(); var selText = $(el).text();
var theID = $(el).attr('id'); var theID = $(el).attr('data-session-id');
var selUser = localStorage.getItem('selUser'); var selUser = localStorage.getItem('selUser');
$(el).parents('.btn-group').find('.selected').attr('id', theID); $(el).parents('.btn-group').find('.selected').attr('data-session-id', theID);
$(el).parents('.btn-group').find('.selected').html(selText); $(el).parents('.btn-group').find('.selected').html(selText);
localStorage.setItem(selUser, theID) localStorage.setItem(selUser, theID)
}; };

Loading…
Cancel
Save