]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: Add some padding between text-entry field and prompt
authorHans de Goede <hansg@kernel.org>
Thu, 3 Jul 2025 10:28:41 +0000 (12:28 +0200)
committerHans de Goede <hansg@kernel.org>
Mon, 14 Jul 2025 08:46:34 +0000 (10:46 +0200)
Two-step's disk unlock screen shows the prompt text directly below
the text entry field without any padding which looks bad.

Add some padding to make things look better.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2356893
Signed-off-by: Hans de Goede <hansg@kernel.org>
src/plugins/splash/two-step/plugin.c

index 01868173fa596d5577e3435cd91a7b6ce2d1a83b..c810564e5709caf903f1f4f37de646c73b17eee8 100644 (file)
@@ -1071,6 +1071,9 @@ view_show_prompt (view_t     *view,
                 ply_label_set_alignment (view->label, PLY_LABEL_ALIGN_CENTER);
                 ply_label_set_width (view->label, label_width);
 
+                /* Add 10 pixels padding between text-entry field and prompt */
+                dialog_bottom += 10;
+
                 x = (screen_width - label_width) / 2;
                 y = dialog_bottom;