[gnome-shell/gbsneto/new-lock-screen: 16/22] authPrompt: Refine entry width
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen: 16/22] authPrompt: Refine entry width
- Date: Wed, 16 Oct 2019 14:10:10 +0000 (UTC)
commit e71c249ea5585ca0bb594b7bca68508f89d25fa5
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Oct 12 21:33:41 2019 -0300
authPrompt: Refine entry width
The current entry has a hardcoded size of 320px,
which doesn't really fit the lock screen mockups.
Remove this hardcoded size from AuthPrompt entries
and make them horizontally expand.
data/theme/gnome-shell-sass/_common.scss | 1 +
js/gdm/authPrompt.js | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
index 3bcd35e95b..9e484a97cb 100644
--- a/data/theme/gnome-shell-sass/_common.scss
+++ b/data/theme/gnome-shell-sass/_common.scss
@@ -1929,6 +1929,7 @@ StScrollBar {
StEntry {
@extend %search_entry;
+ width: -1px;
border-radius: $button_radius;
@if $variant=='dark' {
$_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5);
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 0db40564d8..f01a2fce14 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -122,8 +122,11 @@ var AuthPrompt = class {
this.cancelButton.connect('clicked', () => this.cancel());
mainBox.add_child(this.cancelButton);
- this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
- can_focus: true });
+ this._entry = new St.Entry({
+ style_class: 'login-dialog-prompt-entry',
+ can_focus: true,
+ x_expand: true,
+ });
ShellEntry.addContextMenu(this._entry, { isPassword: true, actionMode: Shell.ActionMode.NONE });
mainBox.add_child(this._entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]