On Tue, 13 Sep 2011, Shay wrote:

Looks like gvim maximizes to the greatest number of full lines and columns?
The rest of the screen is filled with pale gray.

Can I recolor the filled area? Changing my gtk theme doesn't seem to help.

I got this working using the following, fairly simple file:

==> $HOME/.themes/Raleigh/gtk-2.0/gtkrc <==
style "custom-background" {
        # change the "#RGB"/"#RRGGBB" style color here:
        # using pure red for testing
        bg[NORMAL] = "#f00"
}
widget "vim-main-window.*.GtkForm" style "custom-background"
===========================================

I figured out the format of the file through GNOME's GnomeArt/Tutorials/GtkThemes wiki page¹.

I figured out the theme name by running:

$ strace -e trace=file gvim +q | grep themes/ | sed 1q
access("/home/bhaskell/.themes/Raleigh/gtk-2.0/gtkrc", F_OK) = -1 ENOENT (No 
such file or directory)

(I don't run a GNOME WM, so I assume Raleigh is a default.)

And I figured out the widget path (so as to not turn the menus red) using the useful "Parasite" program², which bills itself as a Firebug-like program for GTK+ applications.

Of course, none of this will work if you're not using a GTK+ Gvim.

--
Best,
Ben

¹: GNOME whttp://live.gnome.org/GnomeArt/Tutorials/GtkThemes#The_gtkrc_File

²: Parasite - http://chipx86.github.com/gtkparasite/

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to