How does one retheme the Unity Panel with GTK?

I want to take an existing theme and customise the appearance of the unity panel to the way it appears in another theme. I can't find any documentation about how to modify the panel themes, and I've tried comparing several gtkrc files for different themes that have custom panels, moving around bits of text, but I can't figure out how it's done. Basically, I'm trying to put a dark panel with a gradient in the Orta theme.

Where do I find the answer?


Solution 1:

The unity panel does use gtkrc files, the only way to change how it looks is to edit graphic files in /usr/share/unity/themes

Here is a little guide which can help - unity launcher colors and patterns

Solution 2:

Here is quick and dirty solution for your quiestion!

First things first, you will need to get .rc file for your panel, containg discription of how panel looks. You can write your own, or take it from the other theme.

For example, let's take this file from Ambiance theme at:

/usr/share/themes/Ambiance/gtk-2.0/apps/gnome-panel.rc

You need to copy it into Orta theme folder:

/usr/share/themes/Orta/gtk-2.0/gnome-panel.rc

Now open the Orta .gtkrc (/usr/share/themes/Orta/gtk-2.0/) file scroll, it down, and type:

include "gnome-panel.rc"

Reselect Orta theme after that.

As I told, this is dirty solution and only shows how it can be done. For better looking you will need to write your own .rc file for panel. As for me, I think shiki-color panel looks nice in orta theme =)