[PATCH] Add alignment and width for labels.

Ray Strode halfline at gmail.com
Tue May 1 16:18:51 PDT 2012


Hey,


On Mon, Apr 23, 2012 at 2:06 AM, Dr. Tilmann Bubeck
<t.bubeck at reinform.de> wrote:
> A ply_label can now be alignment with ply_label_set_alignment()
> taking one of PLY_LABEL_ALIGN_LEFT, PLY_LABEL_ALIGN_CENTER, or
> PLY_LABEL_ALIGN_RIGHT.
>
> This alignment is made within a horizontal box which width can be set with
> ply_label_set_width().
>
> Both functions are now used by the plugin "two-step" to make sure, that
> the prompt for "ask-for-password" gets centered on the screen. Previously
> the prompt started in the middle of the screen and was cropped at the right
> border of the screen (fixes bz #681513). This lead to unreadable prompts
> for disk encryption.

Thanks pushed.


More information about the plymouth mailing list