detached 2387784

fix(plymouth): keep logo centered during luks unlock, entry appears below it

commit
2387784d5744aa7b769f093d370184700f37d97b
author
brice · · 2026-02-28 06:36 UTC
parent
122ee1b
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
1 file · +5 -14
M assets/plymouth/archup.script +5 -14
@@ -140,17 +140,9 @@ entry.scaled_image = entry.image.Scale(
140140 Math.Int(entry.image.GetHeight() * 0.6)
141141 );
142142
143-# Gap between logo bottom and entry top when password dialog is shown
144-dialog_gap = 40;
145-
146-# Total height of logo + gap + entry when grouped for password dialog
147-dialog_group_height = logo.image.GetHeight() + dialog_gap + entry.scaled_image.GetHeight();
148-
149-# Vertical start so the group is centered on screen
150-dialog_group_y = Window.GetHeight() / 2 - dialog_group_height / 2;
151-
152-# Entry sits below the logo in password mode
153-entry.dialog_y = dialog_group_y + logo.image.GetHeight() + dialog_gap;
143+# Entry appears below the centered logo with a fixed gap
144+dialog_gap = 32;
145+entry.dialog_y = logo.normal_y + logo.image.GetHeight() + dialog_gap;
154146 entry.x = Window.GetWidth() / 2 - entry.scaled_image.GetWidth() / 2;
155147
156148 entry.sprite = Sprite(entry.scaled_image);
@@ -182,9 +174,8 @@ fun display_password_callback (prompt, bullets)
182174 {
183175 global.password_shown = 1; # Mark that password dialog has been shown
184176
185- # Move logo up so logo + entry are centered together as a group
186- logo_dialog_y = dialog_group_y;
187- logo.sprite.SetPosition(logo.normal_x, logo_dialog_y, 1);
177+ # Keep logo at its normal centered position during unlock
178+ logo.sprite.SetPosition(logo.normal_x, logo.normal_y, 1);
188179
189180 # Reset progress when password dialog appears
190181 stop_fake_progress();
@@ -140,17 +140,9 @@ entry.scaled_image = entry.image.Scale(
140 Math.Int(entry.image.GetHeight() * 0.6)140 Math.Int(entry.image.GetHeight() * 0.6)
141 );141 );
142 142
143-# Gap between logo bottom and entry top when password dialog is shown143+# Entry appears below the centered logo with a fixed gap
144-dialog_gap = 40;144+dialog_gap = 32;
145-145+entry.dialog_y = logo.normal_y + logo.image.GetHeight() + dialog_gap;
146-# Total height of logo + gap + entry when grouped for password dialog
147-dialog_group_height = logo.image.GetHeight() + dialog_gap + entry.scaled_image.GetHeight();
148-
149-# Vertical start so the group is centered on screen
150-dialog_group_y = Window.GetHeight() / 2 - dialog_group_height / 2;
151-
152-# Entry sits below the logo in password mode
153-entry.dialog_y = dialog_group_y + logo.image.GetHeight() + dialog_gap;
154 entry.x = Window.GetWidth() / 2 - entry.scaled_image.GetWidth() / 2;146 entry.x = Window.GetWidth() / 2 - entry.scaled_image.GetWidth() / 2;
155 147
156 entry.sprite = Sprite(entry.scaled_image);148 entry.sprite = Sprite(entry.scaled_image);
@@ -182,9 +174,8 @@ fun display_password_callback (prompt, bullets)
182 {174 {
183 global.password_shown = 1; # Mark that password dialog has been shown175 global.password_shown = 1; # Mark that password dialog has been shown
184 176
185- # Move logo up so logo + entry are centered together as a group177+ # Keep logo at its normal centered position during unlock
186- logo_dialog_y = dialog_group_y;178+ logo.sprite.SetPosition(logo.normal_x, logo.normal_y, 1);
187- logo.sprite.SetPosition(logo.normal_x, logo_dialog_y, 1);
188 179
189 # Reset progress when password dialog appears180 # Reset progress when password dialog appears
190 stop_fake_progress();181 stop_fake_progress();

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close