align center of text in form label does not work

704 views
Skip to first unread message

Oliver Häßler

unread,
Feb 25, 2016, 8:31:47 AM2/25/16
to yad-common
Hi Victor,

the alignment of text in form labels does not work as expected.

yad --form --align=center --text-align=center --field "This is a\ntest\n:LBL"











--text-align=center does not do anything. Also I think that the word "test" should be centered too.

yad-0.33.0-1
Gnome 3.14

Cheers
Oliver

Oliver Häßler

unread,
Feb 25, 2016, 8:43:25 AM2/25/16
to yad-common
Also tested now in yad-0.34.1-1 with the same issue

Victor Ananjevsky

unread,
Feb 25, 2016, 8:50:18 AM2/25/16
to yad-c...@googlegroups.com
hi

--align works for field labels, not for fields with type 'label'

see the example
yad --form --align right --field "short" --field "very very long name"

--text-align works for common dialog text

see the example
yad --width 500 --text "dialog text" --text-align center


actually, i don't know now how to easy implement alignment for fields
with type 'label'

saying 'easy' i mean without adding too much additional command-line
parameters, because this feature must be realized for each field
separately

В Thu, 25 Feb 2016 05:31:47 -0800 (PST)
Oliver Häßler <o.hae...@gmail.com> писал:

> Hi Victor,
>
> the alignment of text in form labels does not work as expected.
>
> yad --form --align=center --text-align=center --field "This is
> a\ntest\n:LBL"
>
> <https://lh3.googleusercontent.com/-w0DKxjcCbNM/Vs8B4EJ9C4I/AAAAAAAAHCw/JnWFHge33nU/s1600/YAD_20160225_14%253A29%253A58.png>
>
>
>
>
>
>
>
>
>
>
> --text-align=center does not do anything. Also I think that the word "test"
> should be centered too.
>
> yad-0.33.0-1
> Gnome 3.14
>
> Cheers
> Oliver
>
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Victor Ananjevsky <anan...@gmail.com>
Reply all
Reply to author
Forward
0 new messages