Extender theming issues.

Rob Scheepmaker r.scheepmaker at student.utwente.nl
Thu Oct 9 23:23:35 CEST 2008


On Thursday 09 October 2008 22:51:37 Aaron J. Seigo wrote:
> On Thursday 09 October 2008, Rob Scheepmaker wrote:
> > The margins contained in the panelSvg leave a gap between the borders of
> > the extenderItem and the border of the applet background, setting the
> > margin to 0 makes the borders of the extenderItem stick out of the applet
> > border. Either way, the extenderItem's background doesn't align with
> > applet background properly.
>
> how about:
>
> * make extenders either use the applet background directly, or just require
> that artists make them with the same border sizes

In which case we could set the applet's margins to be 0 and have it work 
correctly when on the desktop? Sounds good. The second option would be better 
imo: gives theme designers more flexibility.
>
> * don't paint the border on the first ExtenderItem in an Extender
>
> * set the borders in the Dialog to be 0 so that the extender paints "full
> width" and therefore just uses it's own borders (which is the reason for
> the first point)

So we would draw only the middle part of dialogs/background.svg, and the 
extenderItems on top of that? In which  case we would still need to paint the 
border on the topmost's item's background since the dialog doesn't provide 
one. And if I would use the applet's background as extenderitem background, 
shadows would be drawn which would look a bit weird inside a Plasma::Dialog.
Or do you mean setting the margins to 0? This wouldn't work either because 
dialog's border sizes differ from the applet's border sizes.

I fear super sexy theming and elegant solutions are mutually exclusive in this 
case.



More information about the Plasma-devel mailing list