[Panel-devel] [PATCH] highlight active task in the taskbar

Marco Martin martkive at gmail.com
Sun Dec 2 09:09:24 CET 2007


On 12/1/07, Robert Knight <robertknight at gmail.com> wrote:
> > i think that alpha should be changed to something like
> > alpha *= qMax(_fadeTimer->currentValue(), 0.3);
>
> It doesn't even have to be the same effect.  Play around, find
> something that looks good and post some screenshots.
after some tests i've come up with this, it's totally arbitrary but it
looks decent.
the active task is never more transparent than 0.6 and it depends from
the global colorscheme contrast: more is the contrast more pronounced
is the gradient

Cheers,
Marco Martin

> Regards,
> Robert.
>
> On 01/12/2007, Jason Stubbs <jasonbstubbs at gmail.com> wrote:
> > On Sunday 02 December 2007 00:24:54 Marco Martin wrote:
> > > On Saturday 01 December 2007, Robert Knight wrote:
> > > > > i've made this patch to the taskbar that makes the task items aware if
> > > > > they are the active window or not, at the moment it's used to
> > highlight
> > > > > the active one.
> > > >
> > > > The tasks applet already has does that.  Whenever a task's status
> > > > changes, the WindowTaskItem::updateTask() method is called.  If the
> > > > task represents the active window its TaskHasFocus flag is enabled.
> > >
> > > whoops :P
> > > at the moment what is the active task is not noticeable at all, so i
> > > assumed this wasn't supported...
> > > so now i will try to see if it's a colorscheme problem or if it's a bug
> > > somewhere
> >
> > While the appearance of active tasks could be better, there does seem to
> > be an intermittent bug where active tasks aren't shown as well.
> >
> > --
> > Jason Stubbs
> > _______________________________________________
> > Panel-devel mailing list
> > Panel-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/panel-devel
> >
> _______________________________________________
> Panel-devel mailing list
> Panel-devel at kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tasks_2.diff
Type: application/octet-stream
Size: 1812 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071202/bebf54c4/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tasks.png
Type: image/png
Size: 19514 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071202/bebf54c4/attachment-0001.png 


More information about the Panel-devel mailing list