#366 Centering of the dClock text in vertical panels

open
nobody
None
5
2010-11-04
2010-11-04
inductiveload
No

When the panel is vertical (i.e. stuck to the left or right of the screen), the clock is unattractively left-aligned. By changing the gtk label to be expanding, it centers the text, resulting in a much neater looking clock, especially when there are multiple lines.

This has no effect when the panel is horizontal (top or bottom) since the applet is constrained by those around it.

Discussion

  • inductiveload
    inductiveload
    2010-11-04

    I realised that this method didn't actually center the label's text _within_ the label, it just centered the label in the HBox, so I added a configuration option for text centering within the label, since I guess some people would want left aligned text when they have a horizontal panel.

     
  • inductiveload
    inductiveload
    2010-11-04

    Patch which allows text centering

     
  • gilir
    gilir
    2011-12-24

    Patch committed in lxpanel git master. Thanks for your contribution :)