1

改了一下 GTK 3 的默认主题

 3 years ago
source link: https://blog.lilydjwg.me/2017/9/9/gtk3-theme-tweak.210616.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

改了一下 GTK 3 的默认主题

本文来自依云's Blog,转载请注明。

最近开始用 Firefox nightly 了。它使用 GTK 3,于是对 GTK 3 主题的不满也逐渐表现出来了。

首先是选中的文本,以及菜单项。默认的那个蓝色太深了,我还是更喜欢 GTK 2 mist 主题那个浅蓝色。

然后,我是使用亮色主题的,黑黑的 tooltip 提示框太违和。而且边距那么大,多浪费空间啊。改成 GTK 2 时代那种简单的样子好了。

最后,那个又细又黑的滚动条好讨厌。改掉改掉!

最终效果图(好不容易才把这么多东西截到一张图里喵):

~/.config/gtk-3.0/gtk.css 代码:

gtk.css
/* For Adwaita {{{1
*/
/* scrollbars {{{2
*/
scrollbar {
border-radius: 0;
background-color: #eaeaea;
}
scrollbar slider {
background-color: #bfbfbf;
border-color: transparent;
border-width: 4px;
min-height: 10px;
min-width: 10px;
border-radius: 0;
}
scrollbar slider:hover, scrollbar slider:active {
background-color: #bfbfbf;
}
/* tooltip {{{2
*/
tooltip {
border: 1px solid #808080;
background-color: rgba(254,254,228,0.9);
border-radius: 0;
padding: 0;
}
tooltip * {
color: #000;
padding: 0;
}
/* others {{{2
*/
*:selected, menuitem:hover {
background-color: #d6e9f8;
color: currentColor;
}
/* Vim modeline {{{1
* vim:se fdm=marker:
*/

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK