User Tools

Site Tools


script_random_drawer_colors

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script_random_drawer_colors [2014/03/06 00:06]
tbog
script_random_drawer_colors [2014/05/03 20:29] (current)
tbog [About the script]
Line 1: Line 1:
 ====== About the script ====== ====== About the script ======
   * Purpose : Set a random color to the background of the apps in the app drawer   * Purpose : Set a random color to the background of the apps in the app drawer
-  * Author : TBog +  * Author : [[http://​www.google.com/​+BogdanTautuTBog|TBog]] 
-  * Link: www.google.com/​+BogdanTautuTBog +  * Link: [[https://​plus.google.com/​113157980543803349502/​posts/​6LmZGtuyW5d|request post]]
 ====== How to use the script ====== ====== How to use the script ======
  
Line 43: Line 42:
 for(var idx=items.getLength()-1;​ idx>=0; idx-=1) for(var idx=items.getLength()-1;​ idx>=0; idx-=1)
 { {
-var c=hslToRgb( Math.random(),​ Math.random()*0.4+0.6,​ Math.random() );+var c=hslToRgb( Math.random(),​ Math.random()*0.4+0.6,​ Math.random() ​* 0.6 );
 var item=items.getAt(idx);​ var item=items.getAt(idx);​
 var e=item.getProperties().edit();​ var e=item.getProperties().edit();​
script_random_drawer_colors.1394064417.txt.gz · Last modified: 2014/03/06 00:06 by tbog