Skip to content

Commit

Permalink
Improve auth popup slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Aug 18, 2015
1 parent 6ba626b commit e4369dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
21 changes: 11 additions & 10 deletions glwskins/flat/popups/auth.view
Expand Up @@ -8,16 +8,17 @@ widget(container_x, {

widget(container_y, {
align: center;

filterConstraintX: true;

popupGroup(
filterConstraintX: true;


widget(container_y, {
filterConstraintX: true;
spacing: 4;
widget(container_x, {
spacing: 10;
widget(icon, {
source: "skin://icons/svg/ic_lock_48px.svg";
source: "skin://icons/ic_lock_48px.svg";
sizeScale: 2;
});

Expand All @@ -37,7 +38,7 @@ widget(container_x, {
hidden: $self.disableUsername;
caption: _("Username");
});

popupInputField(
hidden: $self.disableUsername;
widget(text, {
Expand All @@ -55,7 +56,7 @@ widget(container_x, {
hidden: $self.disablePassword;
caption: _("Password");
});

popupInputField(
hidden: $self.disablePassword;
widget(text, {
Expand All @@ -74,7 +75,7 @@ widget(container_x, {
hidden: $self.disableDomain;
caption: _("Domain");
});

popupInputField(
hidden: $self.disableDomain;
widget(text, {
Expand All @@ -93,9 +94,9 @@ widget(container_x, {
!$self.canRemember);

widget(container_x, {
.align = center;
.spacing = 20;
.homogenous = true;
align: center;
spacing: 20;
homogenous: true;

popupButtonOK(deliverEvent($self.eventSink, "OK"),
true, false);
Expand Down
14 changes: 9 additions & 5 deletions glwskins/flat/popups/common.view
@@ -1,10 +1,14 @@

#define popupGroup(BODY) {
widget(backdrop, {
.source = "skin://graphics/blackdrop16.png";
.border = 7;
.alphaSelf = 0.8;
BODY;
widget(container_z, {
widget(quad, {
color: 0;
alpha: 0.6;
});
widget(container_x, {
padding: 1em;
BODY;
});
});
}

Expand Down

0 comments on commit e4369dc

Please sign in to comment.