Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I maximize a window in Ubuntu 11.04, the close, minimize and maximize buttons change to these nice ones

Where are they located on the filesystem? I would like to build a theme out of them but want the originals.

share|improve this question
up vote 0 down vote accepted

The buttons in question for Ambiance are in /usr/share/themes/Ambiance/metacity-1. Each theme has it's own set using the same file names. You can edit these png files. I changed mine from orange to a shade of blue I liked. The system uses a base name like "close" and appends let's say "_focused_prelight.png" to get the file name for the state to display.

share|improve this answer
Thanks, have edited them to match the image above. Looks great, but the spacing on restored windows between each button is almose none. But the spacing between the buttons in the above picture is greater. Where can I edit this spacing to match the one above? I'm not sure which line it is in the metacity XML for this theme. – nLinked May 26 '11 at 16:28
i believe what you'd need to do is edit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml. If you must make a backup so you can restore the file if things don't come out the way you want them. This xml file is very complex, so be careful. – fragos May 27 '11 at 7:22

Those icons get painted by Unity as fallback if the chosen theme isn't Ambiance or Radiance, so you won't find them in any directory.

share|improve this answer

they'll be in the theme directory. depending on whether this is a theme you installed, or one that came as a default with the system they'll be in:




typically window buttons appear in the metacity directory, rather than the gtk directory.

share|improve this answer
I can't find those specific buttons. I'm using the default theme, and all I've done to it is change the panel color to pure black. Then I noticed the close, min, max button icons changed too! But on a restored window, they are normal Ambiance icons. Only the maximized window has different ones. – nLinked May 25 '11 at 17:59
In fact, I think they're the same Ambiance icons, but somehow they have transparency so the colors disappear. – nLinked May 25 '11 at 18:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.