小智 1
要删除底部面板,请按照Wey 在 Arch Linux 论坛上的以下步骤操作:
- 编辑 /usr/share/gnome-shell/theme/gnome-shell.css:搜索 #message-tray 并用 /* ... */ 注释掉该块。这将删除黑条,但不会删除图标及其文本。
接下来转到 /usr/share/gnome-shell/js/ui/messageTray.js:搜索 ICON_SIZE (此处位于第 881 行)并将其设置为 0:
Run Code Online (Sandbox Code Playgroud)ICON_SIZE: 0,下面大约三行指出
Run Code Online (Sandbox Code Playgroud)this.title = title;做了
Run Code Online (Sandbox Code Playgroud)this.title = '';这使得整个事情消失了。
(或)使用来自同一线程的 yanir 解决方案:
- 编辑 /usr/share/gnome-shell/theme/gnome-shell.css:搜索 #message-tray 并用 /* ... */ 注释掉该块。这将删除黑条,但不会删除图标及其文本。
按以下方式编辑 /usr/share/gnome-shell/js/ui/messageTray.js:(文件末尾的最后一个类)
Run Code Online (Sandbox Code Playgroud)const SystemNotificationSource = new Lang.Class({ Name: 'SystemNotificationSource', Extends: Source, _init: function() { this.parent(_("System Information")); this._setSummaryIcon(this.createNotificationIcon()); }, createNotificationIcon: function() { // return new St.Icon({ icon_name: 'dialog-information', // icon_type: St.IconType.SYMBOLIC, // icon_size: this.ICON_SIZE }); return 0; }, open: function() { this.destroy(); } });
| 归档时间: |
|
| 查看次数: |
14186 次 |
| 最近记录: |