如何更改Unity 2D启动器图标的大小?

是否可以使Unity 2D启动器图标小于或大于默认大小?

11.10

有一种方法可以使图标变小,但是图标被背光包围,总是54×54像素,你不能缩小它,它是硬编码的。 你能做的是: 在此处输入图像描述

用于resize图标的滑块 – 启动器在ubuntu-2d(Unity 2D)会话中不可用。 所以我假设您使用的是Unity 2D。

确定您使用哪个会话

echo $DESKTOP_SESSION 

终端中的命令。

如果要在Ubuntu-2d(Unity 2D)会话中调整Launcher – Icons的大小,您必须手动“破解”某些项目。

仔细阅读并仔细应用波纹管更改。

打开终端然后做

 gksudo gedit /usr/share/unity-2d/shell/Shell.qml 

找到这个条目

 LauncherLoader { id: launcherLoader anchors.top: parent.top anchors.bottom: parent.bottom width: 65 

并将宽度更改为52。

保存 – 关闭然后再次

  gksudo gedit /usr/share/unity-2d/shell/common/IconTile.qml 

找到条目

  Image { id: icon objectName: "icon" anchors.centerIn: parent smooth: true sourceSize.width: 48 sourceSize.height: 48 

并将sourcesSize.width和sourceSize.height更改为32

保存 – 关闭文件然后再次

 gksudo gedit /usr/share/unity-2d/shell/launcher/LauncherList.qml 

找到该部分

 AutoScrollingListView { id: list Accessible.name: objectName /* The spacing is explicitly set in order to compensate the space added by selectionOutline and round_corner_54x54.png. */ spacing: -7 property int tileSize: 54 /* selectionOutline tile size, so AutoScrollingList view can calculate the right height. */ property int selectionOutlineSize: 65 

并将titeSize更改为40,将selectionOutlineSize更改为52。

保存文件并注销 – 登录更改生效。

享受并注意,未来的更新可能(不确定)这些值返回默认值。

此过程先前在2012年3月描述 : 在Unity 2d Ubuntu 12.04中更改图标大小 。

12.04

更新

有一个小脚本可以更改Unity-2d启动器项目的大小。 从论坛下载脚本(您需要登录才能下载该文件)。

然后使文件可执行:

 chmod +x script.py 

使用脚本更改Unity-2D启动器项的大小:

 sudo script.py 32 

在这里,我以32为例。 您可以根据需要使用其他图标大小。

参考文献:


原始答案

在撰写此答案时,无法轻松更改启动器图标的大小。 Georgi的hackish方法是改变图标大小的最佳方法。

改变图标大小的function尚未完全开发,希望它将在12.04落地。

请参阅https://answers.launchpad.net/unity-2d/+question/175008 。

您可以在12.04更改图标大小。 转到论坛,在桌面环境论坛中查看我的post

http://ubuntuforums.org/showthread.php?t=1943423