Skip navigation.
Home

Reply to comment

Theming the background of filer windows

Category:

My GTK theme makes my filer background a different color; how do I make it white again?

Put something like the following in your ~/.gtkrc-2.0 file:
Note: to prevent this file from being overridden when changing themes use ~/.gtkrc.mine
instead

style "rox" = "default"
{
  bg[NORMAL] = "#ffffff"
  bg[ACTIVE] = "#ffffff"
}
widget_class "*Collection*" style "rox"

Next, restart ROX-Filer (or you X session). You can just restart ROX by killing the ROX-Filer process : under Linux, use killall ROX-Filer and restart it. Don't use killall under Solaris.

Other widget_class backgrounds you may like to change include:

  • GtkToolbar - the toolbar at the top of the window
  • GtkMenu - menus

but remember that this will affect all GTK applications.

How do I set a background image for ROX filer windows?

This is similar to the previous question. Put something like the following in your ~/.gtkrc-2.0 file:
Note: to prevent this file from being overridden when changing themes use ~/.gtkrc.mine
instead

pixmap_path "/home/yourhome/images"
style "rox" = "default"
{
  bg_pixmap[NORMAL] = "roxbg.png"
}
widget_class "*Collection*" style "rox"

Bu sure that roxbg.png is in the path you use in the pixmap_path directive. The image will be tiled to fill the whole ROX filer window. Next, restart ROX-Filer (or you X session). You can just restart ROX by killing the ROX-Filer process : under Linux, use killall ROX-Filer and restart it.

Further reading

See the GTK Theming Tutorial for more information.

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <img> <pre> <b> <i> <blockquote>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>.

More information about formatting options