10.4: Change the Stickies widget's default settings

May 17, '05 09:51:00AM

Contributed by: Anonymous

Tiger only hintI like the Stickies widget, but I don't want a yellow page and that horrible 18-point Marker Felt font as the default. It took a bit of tinkering, but I found what to change:

Make a backup of the Stickies widget (in /Library/Widgets) first, in case you make a mistake. Open Stickies.js inside the Stickies widget (Control-click on the Stickies widget and select Show Package Contents), and in the first set of variables, change find var autofont = true; and change true to false. This will override the huge 18-point text. Next, find the function loaded () string (about 3/4ths of the way down the document) and change the gCurrentFontSize from 18pt to whatever you prefer (I chose 10px). Also change the gCurrentFont to your preferred font. Save and close the new JavaScript file.

Open Stickies.css and change the background image URL in the first line to your favourite colour background image (located in the Images folder of the package). Also change the font attributes in the .auto-div section (beneath the backgound image line) to your favoured size and typeface. That's it for the CSS file, so save and close.

Next open the Stickies.html file and find the var font and var size lines, and change the Marker felt and 18px to what you want. Save this and close.

If you test the progress of the Stickies widget in the Dashboard, you should find that the default font and size have changed, but when you drag the sticky out of the dashboard, the background is still yellow until last minute. This can be changed by replacing the image Default.png file found in the root package folder with one of the images from the Images folder.

[robg adds: I haven't tested this one...]

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050507074513541