Plasma themed tabbox

Marco Martin notmart at gmail.com
Wed Feb 25 20:38:55 CET 2009


On Tuesday 24 February 2009, Martin Gräßlin wrote:
> I worked on Plasma themeing the normal tabbox (without effects). So far
> everything seems to work ;-)
>
> As this is my first work on anything related to QGraphicsView/Plasma I
> cc-ed Plasma devs. Please have a look at the patch and tell me what I have
> done wrong (probably thousands of things). Especially there is still a
> white border around the tabbox and I don't know how to get rid of it.

setAttribute(Qt::WA_TranslucentBackground) on the widget, and then
painter->setCompositionMode(QPainter::CompositionMode_Source) before 
painting the framesvg

> The old tabbox highlights the background of the active item. I decided to
> just change the font of the item (underline and bold) and apply an icon
> effect. I don't know if it is enough to indicate the currently selected
> item.
>
> Minimized windows used to have a different color. Here I choose an italic
> font instead. Icon effect still the same.
>
> Here some screenshots:
>  * http://img7.imageshack.us/img7/4466/plasmatabbox.png
>  * http://img25.imageshack.us/img25/9282/plasmadesktopbox.png
>
> Regards
> Martin




More information about the Plasma-devel mailing list