You are not logged in.

#1 2016-10-02 15:49:58

hungerfish
Member
Registered: 2009-09-13
Posts: 254

[SOLVED]gvim 8.0 gtk3 fat border problem

Maybe some of you  are aware of this problem that could crop up with prior versions of gvim and gtk2.
With the following added to ~/.gtkrc-2.0 you could 'fix' it:

style "vimfix" {
    bg[NORMAL] = "#1b1918"
    GtkWindow::resize-grip-height = 0
    GtkWindow::resize-grip-width = 0
}
widget "vim-main-window.*GtkForm" style "vimfix"

So, since the 8.0 update for vim gvim uses gtk3 for drawing its widgets and thus that 'fix' no longer works and I'm back to having fat and ugly widget padding at the bottom and right edge of the gvim window (dependant on font, font size and window dimensions!). At least the resize-grips aren't visible though!

So, the question is, how to write the above fix with gtk3 in mind?

EDIT:

For now, I use:

GTK_THEME=Adwaita:dark gvim

to make it less annoying, but I would like to get back to gtk using vim's actual colorscheme-bg color!

Last edited by hungerfish (2016-10-03 15:05:31)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#2 2016-10-03 03:11:14

SimSonic
Member
From: Montreal, Canada
Registered: 2009-08-03
Posts: 4

Re: [SOLVED]gvim 8.0 gtk3 fat border problem

You can fix the issue by adding the following to the file ~/.config/gtk-3.0/gtk.css:

#vim-main-window {
    background-color: #1b1918;
}

Offline

#3 2016-10-03 15:05:15

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: [SOLVED]gvim 8.0 gtk3 fat border problem

Great, it works! smile

Much appreciated!


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

Board footer

Powered by FluxBB