Creating Themes - Kirocker Music Display

Warning: Kirocker Music Display 4.0 Beta 3 now includes a graphical theme editor. This page is not necessary anymore.
You can read the page on How to Create Custom Frames since frames still have no editor.

Kirocker Music Display 4.0 Beta 1 introduced theme.
See the five featured default themes.
The editor in this version is not finished yet. Here is how to create and modify themes by hand.

File Locations

The default themes are generally installed here: /usr/share/apps/kirocker/themes/.
To create a new theme, copy one of the folders to your home folder here: ~/.kde/share/apps/kirocker/themes/.
Make sure the folder name of your new theme is different of the original folder.
Then, you can restart Kirocker Music Display or Kicker (if you have the applet, do so by using the command "dcop kicker default restart") and edit the colors and frames with the graphical editor.

Background Image(s)

To change the background image, replace the image(s) background.jpg and/or background-wide.jpg.
The first image is for people with a 4/3 screen ratio, and the wide variant is for people with 16/10 wide screens.
If one image is missing, the other is used instead. So if your background image does not suffer from ratio deformation, you can include only one version.
Once you replaced the background image(s), you must restart Kirocker Music Display or Kicker.

Preview

If you changed the background image, duplicate the image file and name it background.preview.jpg or background-wide.preview.jpg.
Edit it in The Gimp to resize it down so that its width is equal to 100 pixels.
For that, use the menu "Image" -> "Scale & Size of the Image..." and enter "100" in the width.
As previously, restart Kirocker Music Display or Kicker after having done this change.

Custom Frames

The default frames are generally installed here: /usr/share/apps/kirocker/frames/.
To create a new frame, copy one of the folders to your home folder here: ~/.kde/share/apps/kirocker/frames/.
Make sure the folder name of your new frame is different of the original folder.
Provide an image named frame.png and edit the file kirocker-frame.config:
The goal of this file is to let the application always position your frame so that the user do not have to enter any padding pixels. When the user choose your frame, for any part of the screen he want, the frame should always be well placed as she meant. For that, Kirocker Music Display need to know the following information:

Then, you can restart Kirocker Music Display or Kicker (if you have the applet, do so by using the command "dcop kicker default restart") and use your new frame.
Do not forget to include the frame with the theme if you make it available to other people (see the Share paragraph).

Authoring

Before putting your theme online, considere opening the file kirocker-theme.config of your theme folder in a text editor, and edit the [Author] group.
Put your Name, EMail, URL and CopyrightInformation.
Those information will be used later in the theme About box.

Share

Once you've made a new theme, you can zip the folder and share it by posting its URL in a comment on Kirocker Music Display page.
If it is good it may be included by default in the final version.