Well.. since my mail to kcd is still being moderated I guess I'd also post
this patch here.

RFC: QML shadow patch, and handle mask correctly.

Screen shot.
http://wstaw.org/m/2013/01/07/plasma-desktopoj1171.png

The non-composite side is not affected as far as I tested. Shadow will not
be shown if composite is not enabled.


On Mon, Jan 7, 2013 at 7:06 AM, Martin Gräßlin <mgraess...@kde.org> wrote:

> On Monday 07 January 2013 12:51:47 Marco Martin wrote:
> > On Monday 07 January 2013, Martin Gräßlin wrote:
> > > >     if that's so, then all that needs be done is to add the shadows
> by
> > > >     name in the rendering in the tabbox. shadow-top, etc. this can be
> > > >     done easily in the QML itself, and the problem would be solved.
> > >
> > > erm how?
> > >
> > >     PlasmaCore.FrameSvgItem {
> > >
> > >         id: shadowTop
> > >         imagePath: "shadow-top"
> > >
> > >     }
> > >
> > > and if that's possible it should be done for all the OSD and everything
> > > which does not have a problem with shadows being part of the window for
> > > performance reasons.
> >
> > the following should work fine:
> >      PlasmaCore.FrameSvgItem {
> >          id: shadow
> >          svg:Svg{imagePath: "shadow"}
> >      }
> and how to anchor it? The current code just uses:
>
>     PlasmaCore.FrameSvgItem {
>         id: background
>         anchors.fill: parent
>         imagePath: "dialogs/background"
>     }
>
> and I honestly have no idea how I should do it now. Also how does it affect
> the non-composited case?
> >
> > --
> > Marco Martin
> > _______________________________________________
> > Plasma-devel mailing list
> > Plasma-devel@kde.org
> > https://mail.kde.org/mailman/listinfo/plasma-devel
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>

Attachment: kwin-qml-shadow.patch
Description: Binary data

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to