Mil*_*ind 4 gnome gnome-classic 16.04
我已经安装了 Ubuntu GNOME 16.04 LTS
一切都很好,很顺利。但我想减小“显示应用程序”网格中的图标大小。
我该怎么做 !!
主题现在在二进制文件gresource 中,您需要解压缩 gresource 文件,进行更改并将其放回原处。
mkdir ~/shell-theme并extractgst.sh在此目录中创建并将以下内容粘贴到该文件中。
#! /bin/sh
workdir="${HOME}/shell-theme"
gst="/usr/share/gnome-shell/gnome-shell-theme.gresource"
mkdir theme
for r in `gresource list $gst`; do
gresource extract $gst $r >$workdir${r/#\/org\/gnome\/shell/}
done
Run Code Online (Sandbox Code Playgroud)
执行上面的脚本,您将从gnome-shell-theme.gresource.
使用您的编辑器并编辑gnome-shell.css文件。
并固定值如下(您可以选择其他值)。
.icon-grid {
spacing: 18px; /* was 36px */
-shell-grid-item-size: 35px; /* was 70px */
}
.all-app .icon-grid {
-shell-grid-item-size: 59px; /* was 118px */
}
.all-app .overview-icon {
icon-size: 48px; /* was 96px */
}
Run Code Online (Sandbox Code Playgroud)
现在你必须建立新的 gnome-shell-theme.gresource
从 github下载gnome-shell-theme.gresource.xml并将其放入您的~/shell-theme/theme目录中
cd ./theme
glib-compile-resources gnome-shell-theme.gresource.xml
Run Code Online (Sandbox Code Playgroud)
然后将生成的gnome-shell-theme.gresource文件复制到/usr/share/gnome-shell目录中。
详细信息:这里和这里以及bbs.archlinux.org
| 归档时间: |
|
| 查看次数: |
4810 次 |
| 最近记录: |