有一种方法可以使图标变小,但是图标被背光包围,背光始终为 54x54 像素,您无法缩小它,它是硬编码的。你可以做的是:
调整图标大小的滑块 - Launcher 在 ubuntu-2d (Unity 2D) 会话中不可用。所以我假设您使用的是 Unity 2D。
确定您使用哪个会话,将是
echo $DESKTOP_SESSION
Run Code Online (Sandbox Code Playgroud)
终端中的命令。
如果您想在 Ubuntu-2d (Unity 2D) 会话中调整 Launcher - Icons 的大小,您必须手动“破解”某些项目。
仔细阅读并仔细应用以下更改。
打开终端并执行
gksudo gedit /usr/share/unity-2d/shell/Shell.qml
Run Code Online (Sandbox Code Playgroud)
找到这个条目
LauncherLoader {
id: launcherLoader
anchors.top: parent.top
anchors.bottom: parent.bottom
width: 65
Run Code Online (Sandbox Code Playgroud)
并将宽度更改为 52。
保存 - 关闭然后再次
gksudo gedit /usr/share/unity-2d/shell/common/IconTile.qml
Run Code Online (Sandbox Code Playgroud)
找到条目
Image {
id: icon
objectName: "icon"
anchors.centerIn: parent
smooth: true
sourceSize.width: 48
sourceSize.height: 48
Run Code Online (Sandbox Code Playgroud)
并将 sourcesSize.width 和 sourceSize.height 更改为 32
保存 - 关闭文件,然后再次
gksudo gedit /usr/share/unity-2d/shell/launcher/LauncherList.qml
Run Code Online (Sandbox Code Playgroud)
找到该部分
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
Run Code Online (Sandbox Code Playgroud)
并将 titeSize 更改为 40,将 selectionOutlineSize 更改为 52。
保存文件并注销 - 登录更改生效。
享受并注意,在未来的更新中(不确定)这些值可能会恢复为默认值。
此过程之前在 2012 年 3 月的此处描述过:在 Unity 2d Ubuntu 12.04 中更改图标大小。
更新:
有一个小脚本可以更改 Unity-2d 启动器项目的大小。从论坛下载脚本(您需要登录才能下载文件)。
然后使文件可执行:
chmod +x script.py
Run Code Online (Sandbox Code Playgroud)
使用脚本更改 Unity-2D 启动器项目的大小:
sudo script.py 32
Run Code Online (Sandbox Code Playgroud)
在这里,我以 32 为例。您可以根据需要使用其他图标大小。
参考:
原答案:
在撰写此答案时,无法轻松更改启动器图标的大小。Georgi 的hackish 方法是更改图标大小的最佳方法。
更改图标大小的功能还没有完全开发出来,希望它会在 12.04 中登陆。
请参阅https://answers.launchpad.net/unity-2d/+question/175008。
| 归档时间: |
|
| 查看次数: |
16721 次 |
| 最近记录: |