Fix ceratopsian-theme’s plymouth password/fsck prompts off-center on multi-monitor mixed-resolution set-ups. Thanks Shaun Lewis for the patch. (Closes: #1110858)
This commit is contained in:
@@ -330,7 +330,7 @@ fun get_message_label (label, is_fake, is_action_line) {
|
||||
message_label.height = message_image.GetHeight ();
|
||||
|
||||
# Center the line horizontally
|
||||
message_label.x = Window.GetX () + Window.GetWidth () / 2 - message_label.width / 2;
|
||||
message_label.x = (Window.GetWidth () - message_label.width) / 2;
|
||||
|
||||
message_label.y = top_of_the_text;
|
||||
|
||||
@@ -365,7 +365,7 @@ fun get_fsck_label (label, is_fake) {
|
||||
fsck_label.height = fsck_label.image.GetHeight ();
|
||||
|
||||
# Centre the label horizontally
|
||||
fsck_label.x = Window.GetX () + Window.GetWidth () / 2 - fsck_label.width / 2;
|
||||
fsck_label.x = (Window.GetWidth () - fsck_label.width) / 2;
|
||||
|
||||
local.first_label = get_message_label (label, 1, 0);
|
||||
|
||||
@@ -482,7 +482,7 @@ fun password_dialogue_setup (message_label) {
|
||||
entry.sprite.SetImage (entry.image);
|
||||
|
||||
# Centre the box horizontally
|
||||
entry.x = Window.GetX () + Window.GetWidth () / 2 - entry.image.GetWidth () / 2;
|
||||
entry.x = (Window.GetWidth () - entry.image.GetWidth ()) / 2;
|
||||
|
||||
# Put the entry below the second label.
|
||||
entry.y = message_notification[2].y + label.height * 1.5;
|
||||
@@ -530,7 +530,7 @@ fun display_password_callback (prompt, bullets) {
|
||||
spaces = Math.Int( (password_dialogue.entry.image.GetWidth () - (margin * 2)) / (bullet_width / 2 ) );
|
||||
#DebugMedium ("spaces = " + spaces + ", bullets = " + bullets);
|
||||
bullets_area.width = margin + spaces * (bullet_width / 2);
|
||||
bullets_area.x = Window.GetX () + Window.GetWidth () / 2 - bullets_area.width / 2;
|
||||
bullets_area.x = (Window.GetWidth () - bullets_area.width) / 2;
|
||||
#DebugBottom ("pwd_entry (x,y) = " + password_dialogue.entry.x + "," + password_dialogue.entry.y
|
||||
# + "), bullets_area.x = " + bullets_area.x + ", bullets_area.width = " + bullets_area.width);
|
||||
if (bullets > spaces)
|
||||
|
||||
Vendored
+5
@@ -5,6 +5,11 @@ desktop-base (14.0.0~pre2) UNRELEASED; urgency=medium
|
||||
dependencies that would normally try to connect to the D-Bus session bus
|
||||
during build.
|
||||
|
||||
[ Aurélien COUDERC ]
|
||||
* Fix ceratopsian-theme’s plymouth password/fsck prompts off-center on
|
||||
multi-monitor mixed-resolution set-ups. Thanks Shaun Lewis for the patch.
|
||||
(Closes: #1110858)
|
||||
|
||||
-- Aurélien COUDERC <coucouf@debian.org> Sun, 17 Aug 2025 23:33:02 +0200
|
||||
|
||||
desktop-base (14.0.0~pre1) unstable; urgency=medium
|
||||
|
||||
Reference in New Issue
Block a user