是否可以使 Unity 2D 啟動器圖示比預設大小更小或更大?
答案1
11.10
有一種方法可以使圖示變小,但是圖示周圍有背光,尺寸始終為 54x54 像素,而且您無法縮小它,它是硬編碼的。你可以做的是:
答案2
12.04
更新:
有一個小腳本可以更改 Unity-2d 啟動器專案的大小。從下載腳本論壇(您需要登入才能下載檔案)。
然後使檔案可執行:
chmod +x script.py
使用腳本更改 Unity-2D 啟動器專案的大小:
sudo script.py 32
這裡我以32為例。您可以根據需要使用其他圖示尺寸。
參考:
- http://www.omgubuntu.co.uk/2012/03/how-to-adjust-size-of-unity-2d-launcher-and-icons/
- http://www.omgubuntu.co.uk/2012/04/how-to-change-unity-2d-launcher-icon-size-with-a-script/
原答案:
在撰寫此答案時,不可能輕鬆更改啟動器圖示的大小。喬治的駭客方法是更改圖示大小的最佳方法。
更改圖示大小的功能尚未完全開發,希望能在 12.04 中實現。
答案3
用於調整圖示大小的滑桿 - 啟動器在 ubuntu-2d (Unity 2D) 會話中不可用。所以我假設您使用的是 Unity 2D。
確定您使用的會話是
echo $DESKTOP_SESSION
終端機中的命令。
如果您想要調整 Ubuntu-2d (Unity 2D) 會話中啟動器 - 圖示的大小您必須手動「破解」某些項目。
仔細閱讀並仔細應用以下變更。
打開終端機並執行
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
並將sourceSize.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 中的圖示大小。
答案4
您可以在 12.04 中變更圖示大小。前往論壇並查看我在桌面環境論壇中關於此問題的帖子