hto*_*que 5 themes customization 12.04 gtk3
我想更改 Nautilus 中标记的调整大小边框/区域的视觉外观:
如果我知道这些元素在 GTK+ 中是如何命名的,我相信我可以找出我需要添加到/usr/share/themes/Ambiance/gtk-3.0/apps/nautilus.css
.
我将/usr/share/themes/Ambiance/gtk-3.0/apps/nautilus.css中的最后一个条目更改为:
NautilusWindow > GtkTable .pane-separator {
background-color: shade (@dark_bg_color, 1.1);
border-width: 0;
}
Run Code Online (Sandbox Code Playgroud)
得到这个:
您还可以使用渐变,而不是仅使用单一背景颜色:
NautilusWindow > GtkTable .pane-separator {
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@dark_bg_color, 1.04)),
to (shade (@dark_bg_color, 2.2)));
border-width: 0;
}
Run Code Online (Sandbox Code Playgroud)
如果你想删除手柄图标,你必须将其设置-unico-inner-stroke-color
为透明:
NautilusWindow > GtkTable .pane-separator {
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@dark_bg_color, 1.04)),
to (shade (@dark_bg_color, 2.2)));
border-width: 0;
-unico-inner-stroke-color: @transparent;
}
Run Code Online (Sandbox Code Playgroud)
您还可以通过将其添加到 CSS 文件来更改调整大小窗格的厚度(将使调整大小窗格的厚度变为 3 像素):
NautilusWindow * {
-GtkPaned-handle-size: 3;
}
Run Code Online (Sandbox Code Playgroud)
最后的事情看起来像这样:
感谢 Andrea Cimitan 提供的帮助。;-)