(minor) fix wrong gradient being used (in my previous checkin) and introduce a variable to make the code more readable.
(minor) fix wrong gradient being used (in my previous checkin) and introduce a variable to make the code more readable.

xo-energy/dockpanelsuite,transistor1/dockpanelsuite,joelbyren/dockpanelsuite,ArsenShnurkov/dockpanelsuite,angelapper/dockpanelsuite,RadarNyan/dockpanelsuite,compborg/dockpanelsuite,dockpanelsuite/dockpanelsuite,Romout/dockpanelsuite,shintadono/dockpanelsuite,rohitlodha/dockpanelsuite,elnomade/dockpanelsuite,thijse/dockpanelsuite