Creating a Widget Mask

SuperKaramba allows widgets that are any shape, not just square. By default all widgets are square. To create other shapes, you need to create a Widget Mask.

A Widget Mask is simply a 1-bit black and white image the same size as your widget. White areas of the image will show up and black areas will be cut out. Thus, you can make any shape widget that you can draw.

Here are the basic steps:

  • Create an image the same size as your widget in The Gimp
  • Make the background black and draw in white where your widget should show up
  • Use Image->Mode->Indexed and choose 1-Bit Black and White to convert the image to the correct format.
  • Save the image in the directory with your .theme file
  • Add a MASK=myimage.png parameter to your KARAMBA line in your .theme file

Thats it! Here is an illustration: http://netdragon.sourceforge.net/mask_screenshot.jpg

Quick Links











Project hosted by:
SourceForge.net Logo
Primary Author:
 Adam Geitgey <adam@rootnode.org>
Original Karamba Author:
 Hans Karlsson <karlsson.h@home.se>
License: GPL