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

I am using ubunut 12.10 with gnome-shell 3.6.2 . I want to change the background color of the panel appearing top of the screen.

I am currently using following theme as described in Tweak Tool:
Current Theme :Adwaita
Cursor Theme: Adwaita
Gtk+ Theme: Adwaita

I have tried using gconf-editor and dconf-editor but none of them are showing the background color option for the panel.
Can any one suggest me a solution to above ?

share|improve this question
You have to edit the GTK Theme itself, and by the way Adwaita is compiled into a binary file so you'll have to use another theme to change that. – Uri Herrera Dec 16 '12 at 20:28
up vote 2 down vote accepted

gnome-shell styles for the top panel are determined by the CSS file /usr/share/gnome-shell/theme/gnome-shell.css.

The top panel is styled by the #panel ID:

#panel {                     
    background-color: black;  /* <--- */
    font-weight: bold;       
    height: 1.86em;          

You can change that background colour to one you like.

You might also wish to change the .panel-corner class' -panel-corner-background-color colour to get those two rounded corners on the bottom-left and -right of the top panel to change colour:

.panel-corner {
    -panel-corner-radius: 6px;
    -panel-corner-background-color: black; /* <--- */
    -panel-corner-border-width: 2px;   
    -panel-corner-border-color: transparent;

If you wish to avoid modifying the global file /usr/share/gnome-shell/theme/gnome-shell.css, you could make your own theme for gnome-shell (these can be set with the gnome-tweak-tool program). I am fuzzier on the details here, but I suspect you can copy the entire /usr/share/gnome-shell/theme folder (so that you have all the pictures the theme requires) and modify the CSS file, which will provide you with a complete theme.

share|improve this answer

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.