如何使用Gtk 3删除gVim 8中的白色边框 [英] How to remove white border in gVim 8 with gtk 3

查看:109
本文介绍了如何使用Gtk 3删除gVim 8中的白色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的gVim更新为使用gtk 3编译的版本8,我发现gVim窗口周围有奇怪的内部边界:

I recently updated my gVim to version 8 compiled with gtk 3, and I found there are strange inner borders around the gVim window:

此图片可能不是很清晰,但是如果仔细看,您会在右侧和底部看到白色边框.我通过在gtk 2的边框上设置深色来解决了这个问题,但是在gtk3上又发生了这种情况.有没有想完全删除gtk 3上的边框的想法?

This picture may not very clear but if you look carefully you can see the white borders on the right side and the bottom. I have solved this issue by setting a dark color to the border on gtk 2, but on gtk3 it happends again. Any idea of removing this border completely on gtk 3?

推荐答案

GTK3使用CSS来样式化应用程序.要从gVim窗口中删除白色边框,请编辑文件~/.config/gtk-3.0/gtk.css并输入以下内容:

Gtk3 uses css to style applications. To remove the white border from the gVim window, edit the file ~/.config/gtk-3.0/gtk.css and enter the following:

@define-color YOUR_BACKGROUND_COLOR #rrggbb;

window#vim-main-window {
    background-color: @YOUR_BACKGROUND_COLOR;
}

这篇关于如何使用Gtk 3删除gVim 8中的白色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆