[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: General applet test-case: Color change
From:       Marco Martin <notmart () gmail ! com>
Date:       2008-12-28 17:35:13
Message-ID: 200812281835.13130.notmart () gmail ! com
[Download RAW message or body]

On Sunday 28 December 2008, Jamboarder wrote:
> --- On Sun, 12/28/08, Sebastian Kügler <sebas@kde.org> wrote:
> > On Sunday 28 December 2008 17:59:08 Jamboarder wrote:
> > > Sorry I should have been more clear.
> > >
> > > The test-case were for color changes only, not just
> >
> > theme changes (which is
> >
> > > also a good test case).  The test case can only be
> >
> > performed with the Aya
> >
> > > theme at the moment since it is the only plasma them
> >
> > which reacts to color
> >
> > > changes from the System Setting Colors kcm.
> > >
> > > As a side note, I think plasma is arguable reacting
> >
> > about the same or
> >
> > > better to Colors kcm changes that other parts of KDE
> >
> > at the moment.
> >
> > Ah, that explains. Which signal do I need to react to? (I
> > know, I'm lazy, but
> > I figured you know it from the top of your head anyway ...
> >
> > :-)).
>
> No worries. :-)
> I think Plasma::Theme is supposed to emit themeChanged on a Colors kcm
> change for themes like Aya.  You could also react to
> KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()) or, if the applet
> design allows, just assign the plasma theme color directly in the paint
> event.  There may be another way to handle it but can't think of it at the
> moment.

yes, in themes without a colors file the kdisplayPaletteChanged() signal is 
connected to themeChanged() signal, so is the only one needed

Cheers,
Marco Martin

> Hope this helps,
> Andrew
> _______________________________________________
> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic