如何删除启动器图标中的“平铺”背景?

首先让我展示我的发射器: –

在此处输入图像描述

我觉得我的发射器看起来很丑陋,因为图标背后的’方形瓷砖’(缺少一个更好的词)。 我想单独查看图标(没有后面的图块)。 那么有什么方法可以删除’square-tile-thing’吗?

PS: – 我正在使用Ubuntu 14.04 LTS统一。 ‘square-tile-thing’是指每个图标周围的正方形。 (见上图或看你自己的发射器!)

在我用一些文件进行黑客攻击后,我得到了它。

最佳方法: –

1.删​​除’瓷砖’

首先,备份/usr/share/unity/icons 。 为此,请按Ctrl + Alt + t打开终端,然后键入以下内容:

 mkdir ~/backup_icons cp /usr/share/unity/icons/* ~/backup_icons 

然后打开和编辑下面的文件,存在于/usr/share/unity/icons中,以便删除其所有内容:

 launcher_icon_back_54.svg launcher_icon_back_150.svg launcher_icon_edge_54.svg launcher_icon_edge_150.svg launcher_icon_glow_62.svg launcher_icon_glow_200.svg launcher_icon_selected_back_54.svg launcher_icon_selected_back_150.svg launcher_icon_shadow_62.svg launcher_icon_shadow_200.svg launcher_icon_shine_54.svg launcher_icon_shine_150.svg round_glow_62x62.png round_shine_54x54.png 

单独打开每个文件并进行编辑可能很困难。 为避免这种情况,请执行以下操作:

  • Ctrl + Alt + t打开终端。 然后键入: –

     cd /usr/share/unity/icons 
  • 现在输入: –

     对于i在launcher_icon_back_54.svg launcher_icon_back_150.svg launcher_icon_edge_54.svg launcher_icon_edge_150.svg launcher_icon_glow_62.svg launcher_icon_glow_200.svg launcher_icon_selected_back_54.svg launcher_icon_selected_back_150.svg launcher_icon_shadow_62.svg launcher_icon_shadow_200.svg launcher_icon_shine_54.svg launcher_icon_shine_150.svg round_glow_62x62.png round_shine_54x54.png; 做sudo inkscape $ i && read -p 

这应该逐个打开每个文件供您编辑。 您只需选择Inkscape中显示的图像并将其删除即可。 然后保存并关闭它。 现在您需要在终端中按Enter (也就是Return )以打开下一个文件。 重复编辑,保存,关闭并再次按Enter进程并执行相同操作,直到您编辑完所有文件。 现在重启你的电脑。 你应该让你的发射器没有瓷砖。

注意: –我使用Inkscape编辑文件。 但是如果你想使用Gimp(或任何其他编辑器),你可以通过在上面的命令中将inkscape改为gimp (或任何其他编辑器的名称)来实现。

2.再次添加’瓷砖’

为此,您只需将上面创建的备份复制回/usr/share/unity/icons 。 为此,按Ctrl + Alt + t打开终端并键入以下内容:

 cp ~/backup_icons/* /usr/share/unity/icons 

你现在应该把你的发射器带回来。

替代方法: –

1.去掉瓷砖

首先,您需要通过以下命令访问~/Downloads文件夹:

 cd ~/Downloads 

然后通过命令下载文件:

 wget https://www.dropbox.com/s/n48gz3g0fachi3t/icons.tar.gz 

下载包含icons.tar.gz文件。 然后通过执行以下操作备份/usr/share/unity/icons中的图像文件:

 mkdir ~/backup_icons cp /usr/share/unity/icons/* ~/backup_icons 

然后到/usr/share/unity

 cd /usr/share/unity 

现在通过以下命令解压缩下载到/usr/share/unity的tar文件:

 sudo tar zxvf ~/Downloads/icons.tar.gz 

这应该摆脱’瓷砖’

2.再次添加瓷砖

首先,您需要通过以下命令访问〜/ Downloads文件夹:

 cd ~/Downloads 

然后通过命令下载文件:

 wget https://www.dropbox.com/s/31ory2zycvk5c6x/icons.tar.gz 

下载包含icons.tar.gz文件。 然后通过执行以下操作备份/usr/share/unity/icons中的图像文件:

 mkdir ~/backup_icons_notile cp /usr/share/unity/icons/* ~/backup_icons_notile 

然后到/usr/share/unity

 cd /usr/share/unity 

现在通过以下命令解压缩下载到/usr/share/unity的tar文件:

 sudo tar zxvf ~/Downloads/icons.tar.gz 

这应该添加’瓷砖’

PS: – 实际上,我上面提供的下载文件包含/usr/share/unity/icons文件夹,其中编辑了上述图像(在“删除图块”的情况下)和未编辑的(在“添加”的情况下)瓦回来了“)。 我曾想过要保存编辑图像的工作,所以我提供了下载文件。

顺便说一句,在删除’tile’之后,启动器将会是这样的。(注意:由于我的图标设置,垃圾桶图标看起来很有趣。)

在此处输入图像描述

“最佳方法”的信用就是这个问题。

没有简单的方法,因为它是硬编码的。 但是一种解决方法是在您调用时编辑形成“图块”的图像,并将其更改为透明(空)图像。

你可以在…里找到它们:

 /usr/share/unity/icons/ 

在此处输入图像描述

在那里你会看到一堆图像,用于图标正常,按下,突出显示等。例如,用gimp编辑它们,然后替换原件。 当然,先备份。

我在GitHub上创建了一个shell脚本来完成任务。 请查看链接 。 在Ubuntu 15.04上测试过。

另一种简单方法:只需安装自定义主题即可。
在这里您可以找到几个主题: http : //www.noobslab.com/p/themes-icons.html
他们中的一些人删除了“丑陋的’方形瓷砖之物’”,看起来有点像原始的Unity主题。

(您可以使用Unity调整工具切换主题)

启动器图标的外观与Unity本身并不直接相关,而是与您当前为Unity选择的GTK +主题相关,很可能是默认主题。

编辑默认系统主题不是一个好主意,因为您所做的任何更改都可能被更新覆盖。 如果您选择使用此方法,请考虑克隆当前主题并为其指定不同的名称。

说已经有足够的主题没有启动器图标衬垫。

我从noobslab获得了mbuntu主题风格,结果令人满意 :

 sudo add-apt-repository ppa:noobslab/themes sudo apt-get update sudo apt-get install mbuntu-y-ithemes-v5 ## optional icons, which go well with the theme sudo apt-get install mbuntu-y-icons-v5 

接下来,安装Ubuntu Tweak ,以便切换主题:

 sudo add-apt-repository ppa:tualatrix/ppa sudo apt-get update sudo apt-get install ubuntu-tweak 

现在启动Ubuntu Tweak,单击Tweaks – > Theme ,然后在Gtk主题Window主题下选择MBuntu-Y-Unity 。 (可选)选择Mbuntu图标主题。

以下是最终结果的样子:

在此处输入图像描述