This is a post that will hopefully help you to create your own theme. What that really means is that you get to play Dr. Frankenstein. Just find some icons, a window border, a panel, and a menu and you can create a theme. My two favorite places to find icewm themes are:
http://www.box-look.org/index.php?xcont ... d12627568d
http://themes.freshmeat.net/browse/925/Once you've found the components for your theme, you're ready to start.
1. Create a folder for your theme in ~/.icewm/themes/.
2. Copy the parts for the window border into your folder. These are usually every *.xpm image except for the two mentioned below that are used for the "start" menu. Also, you may notice that some images are named with an "A" and others with an "I." These are for the active and inactive window decorations.
3. Copy the menu parts that you want into your theme folder. Usually they are the menubg.xpm and menusel.xpm files.
4. Create folders for your icons: icons, taskbar, mailbox, and ledclock (or just copy and paste these folders from other themes). The main icons to have in your "icons" folder are terminal and folder icons. The main icons to include in your taskbar folder are the start button, show desktop button, and window list button. (The icons should be used automatically by icewm. If you don't have these icons, then icewm will use the default icons found in /usr/share/icewm. Finally, you can control some of the taskbar icons by editing the file ~/.icewm/toolbar)
5. Copy the taskbar (panel) components into your taskbar folder. These include any *.xpm images for the taskbar background, taskbar buttons, and toolbar buttons (they should be pretty easy to find in your borrowed theme's taskbar folder).
6. Now copy and paste a "default.theme" file into your theme's main folder. I suggest using the one from the icewm theme you're borrowing your taskbar from. The reason for this is that it has been customized for the clock, tooltips, cpu graph, fonts, etc.
7. Now comes the first tricky part. Load the file from step 6 into a tabbed editor. Now open the default.theme file from each of your borrowed themes into your editor. I suggest doing this because you need to end up with a file that represents a blending of each of the borrowed themes. Study the menu, taskbar, and window sections from each of the borrowed themes. You will probably end up pasting these sections into the default.theme file of your project. Here are some common edits that I have made:
a. To display the taskbar icons in buttons, use "Look=metal". If you'd prefer them without buttons, use "Look=flat". (This definition is usually found at the top of the file.)
b. If the window borders don't look right, you'll need to edit these values. For the proper values you'll need to study the default.theme file from the window theme you're using. Just use those values (found near the top of the file) in your theme.
c. If you want to edit the fonts, look at the bottom of your file and change the fonts to any that you like.
d. Sometimes parts of a theme have gradients, especially menus. These definitions are usually all found in a single line of code at the top or bottom of a file. I usually add the entire line of code to the top of my file.
8. Now comes the second tricky part: adust your symlinks (they don't seem to respond well to copy and paste). Window components and taskbar components are usually symlinked the most often. Here's what I usually do to recreate the proper symlinks:
a. Have my file browser and a terminal open.
b. In the terminal, cd to the folder of my theme with the symlinks.
c. Find the symlinks by entering "ls -l" in the terminal and study how the links are set up.
d. Use your file browser to delete one of the symlinks.
e. Recreate the symlink using the terminal.
For example, let's say I wanted to use the window frame to highlight a menu entry instead of using the default image. Then I would enter in a terminal (after renaming or deleting the original *xpm in my file browser):
ln -s titleAT.xpm menusel.xpm
9. Be patient and persistent. Also, keep testing your work with each step. Go to start > logout > restart icewm often. This will refresh icewm so you can see your changes.
Good luck and have fun.
john
P.S. Here is a theme I created by blending n-icedesert blue and eiskristall together:
Attachment:
2008-10-11_1024x768.jpg [ 138.81 KiB | Viewed 2558 times ]