[Panel-devel] [PATCH] highlight active task in the taskbar
Marco Martin
martkive at gmail.com
Sat Dec 1 16:24:54 CET 2007
On Saturday 01 December 2007, Robert Knight wrote:
> Hi,
>
> > 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.
> See the lines of code that around "taskFlags() & TaskHasFocus", which
> test to see if the task represents the active window and then adjust
> the colour used to draw the item accordingly.
>
> In the old, tacky colourscheme, the active window's task was tinted in
> red. The colour scheme was changed and I cannot remember what the
> effect looks like in the new scheme - it might need adjusting.
> Unfortunately I have a dodgy checkout or local problem and Plasma
> doesn't run at the moment so I cannot test.
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
Cheers,
Marco Martin
> Regards,
> Robert.
>
> On 01/12/2007, Marco Martin <martkive at gmail.com> wrote:
> > Hi all,
> > 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.
> > it uses the same fade animation used by the mouse over and at the moment
> > it's
> > a little bit hacky, so if the concept is ok it must be cleaned a little
> > bit..
> > i think this is also needed for another feature i would like to add: task
> > switching with the mouse wheel, but at the moment i have absolutely no
> > idea how to do it :P
> > comments?, does it sound good?
> >
> > Cheers,
> > Marco Martin
>
> _______________________________________________
> Panel-devel mailing list
> Panel-devel at kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
More information about the Panel-devel
mailing list