A novice's guide to the wide world of Linux
GnoMenu How-To (Day 1 & 2)
Since yesterday’s post was on a serious matter, I need to catch up on what I was planning on doing this week.
First, you need to have GnoMenu downloaded before you even get started with trying to make your own theme. To each theme, there is 3 parts that are the most customizable:
- The Start Button
- The Menu itself
- The Icons used in the Menu
The first part of today will be making your own start button. The first question you must ask yourself is: do you like or dislike Compiz? (You know, where you have all those cool desktop effects going on and it uses up a little bit of system resources when it runs.) The reason you ask yourself this is because it will determine how you make your start button. If you like the idea of a start button that “sticks out” from the top (or bottom if your panel is on the top) then you will have to have Compiz (or visual effects, and it will continued to be called compiz throughout) enabled, even if its the minimum effects. If you like the idea of the start button just being in the panel and not protruding from the panel (like the default menu icon), you don’t have to have compiz enabled at all.
There is an easy way to get the “depressed” and “glow” aspects of the buttons. (Glow is used when you hover the mouse over the button, and Depressed is used when you have actually pressed the button and brought up the menu.) Open the image in your favorite art program (mine happens to be GIMP) and go to the menu where you can change the brightness level of the image (In GIMP you go to Color>>Brightness-Contrast Tool). For the Glow, set the brightness to 50 (the default should be 0), and for Depressed, set the brightness to -50. Be sure to save each as a separate entity with the correct name. When all is said and done, you should have a total of 4-7 images.
I know, I know, I skipped a few steps. Let me back track a little. Pick an image that you wouldn’t mind using as a start button. If the image is “square”, it will be easier to make into one that will “stick out” of the panel. (square: the width and height are equal, not necessarily in the shape of a square). If you do not want the image to “stick out” then square or rectangle will work (preferably a rectangle with greater width than height).
I will use the same image from the previous example for one that will not stick out and such. (I must also say, that you must chose the height of your panel because the image will squish or stretch of the panel is too short or too tall. Example 1′s panel height is 34pixels, Example 2′s panel height is 39pixels.)
- Take the image you want and scale it down to size
- save image as start-here.png
- select save as, and save it as themepreview.png
- change the brightness to -50, save as start-here-depressed.png
- undo, change brightness to 50, save as start-here-glow.png
Example 2:
Button Without a Top![]()
And now, for the little bit of coding that goes along and tells GnoMenu how to handle your new start button! This is one file that will be saved as themedata.xml
<?xml version="1.0" ?>
<content type="Button">
<theme Top="0" id="HasTop">
<ContentData Name="Black22" Author="linuxgurl13" Copyright="GPL" id="Contentdata"/>
</theme>
</content>
Just change things as appropriate (Name of the Button, put your name as the author, and chose what kind of copy-write you want it to have). Compress all the files (I would suggest you create a folder with the name of the button and put all the files in it) into a tar.gz file. Right click on GnoMenu and select Preferences. Select Panel Button on the left menu. Click on the + button, and select your archive to install it. You will have the restart GnoMenu to see the changes that have taken place. Then you can select your button! YAY!
For the Start Button with a top,you will have 3 more files. The top of the button needs to be approximately the top 10pixels of the image. You will have to cut the top off and paste it into its own new file. You can either do this before or after you have changed the brightness of the original image. Doing this will take a little extra time.
- top of button that is the original: start-here-top.png
- top of button that is depressed: start-here-top-depressed.png
- top of button that is glow: start-here-top-glow.png
Take the same themedata.xml file above and change 0 to 1 where is says: “theme Top=”0″ id=”HasTop” (For those who don’t know 0=False, 1=True in this case)
And now, I will leave you with visual representations of the button(s) I worked on. (Left-to-Right: No Top, Has Top)
I said the first part of the day? oh my. That’s it for today. It took me over an hour to write and take screen shots, as well as that one button from scratch. If you like the one with the top, check out my gnome-look contributions on the left. You can download it from there.
| Print article | This entry was posted by LinuxGurl on 03/18/2009 at 3:51 PM, and is filed under How-To(s). Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
GnoMenu – Take 2
about 5 months ago - No comments
Since my last post about GnoMenu a lot has changed. Firstly, it is now up to version 2.5, and the last version I really messed with was version 1.6 or 1.7. I will be going over how to make the following: The Start Button — updated The Icons used in the Menu The Menu itself
Linux Gurl (dot) com is almost a year old
about 1 year ago - No comments
and a new year calls for a new, fresh start to things. (For those wondering, it will be a year old on the 28th of this month.) I’m going to try my best to write something here everyday and hopefully it will be useful (or fun) information for those reading. I’m going to start out
I’ve been busy/Win 7 rant
about 1 year ago - 2 comments
I have discovered how to make GnoMenu start buttons, and I have been having a blast with them. I do have them up on gnome-look (link can be found on the lower right of the page under “my webthings” but I have also decided to post them here in one master post. I honestly want
okay, I suck at this review thing
about 1 year ago - 1 comment
so, I am going to stop unless I get some impute saying that they want to see it on the site again instead, I’m going to talk about how to make Linux your’s basically, making it “pretty” I run Kubuntu with KDE 3.5.10 (haven’t jumped on the KDE 4.1.1 band wagon yet) and I have
gOS
about 2 years ago - No comments
googOS I mean good OS has released their beta of 3.0 It’s always intrigued me and therefore I will be testing it out coming Monday (if personal conflicts don’t get in the way). For those of you who have never heard of it, it is a distro of linux built from the ground up focusing















about 1 year ago
Very nice tutorial. I would love to see a guide on how to make GnoMenu themes.
about 1 year ago
That’s what I was planning to do that day I wrote this, but after an hour of typing it up and making sure it would make since to someone who didn’t know what they were doing, I was tired (and my son had woken up from his nap and demanded my attention).
Stay tuned on Monday (and possibly Tuesday) for information on how to make your own GnoMenu Theme. I will have links to *.xcf templates that you can download to get you started.
about 1 year ago
Very nice Tutorial Thank you
about 12 months ago
Love You Lady. This is what I was looking for. Nice and clearly explained.
May Linux Gods bless You.
Take care.