我按照此答案中的说明将登录屏幕的 gnome shell 主题更改为 Yaru-dark 。我在重新启动后登录时确实注意到黑色日历和系统菜单。但是,当我用 Super+L 锁定我的电脑时,锁定屏幕仍然有白色的日历和系统菜单,所以我想把它们也调暗。
到目前为止,我看到的所有答案都是针对 Ubuntu 18.04 的,因为它们指的是/usr/share/gnome-shell/ubuntu.css
我没有的。我确实有一个/usr/share/gnome-shell/gnome-shell-theme.gresource
,但是将其更改为我的深色主题 gresource 仍然会导致锁定屏幕上的外壳变浅。其他一些答案指的是 a /usr/share/gnome-shell/theme/gdm3.css
,我也没有(我在该目录中看到的唯一 css 文件是 a gnome-classic.css
)。
我只想知道哪个 css 文件或哪个 gresource 文件控制 Ubuntu 20.04 上的锁屏主题。
在全新安装的 Ubuntu 20.04 中,默认的 shell 主题.. 和锁屏都被配置为使用 css 文件
Yaru/gnome-shell.css
这是在里面 /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource
这是在文件中配置的 /usr/share/gnome-shell/modes/ubuntu.json
{
"parentMode": "user",
"stylesheetName": "Yaru/gnome-shell.css",
"themeResourceName": "theme/Yaru/gnome-shell-theme.gresource",
"debugFlags": ["backtrace-crashes-all"],
"enabledExtensions": ["[email protected]", "[email protected]", "desktop-icons@csoriano"]
}
因此,您可以指出.gresource
要使用的任何文件以及相应的gnome-shell.css
例如,如果我想要 Yaru-dark 主题,我可以通过编辑文件简单地指出这样 /usr/share/gnome-shell/modes/ubuntu.json
/usr/share/gnome-shell/modes/ubuntu.json
在编辑之前备份文件
{
"parentMode": "user",
"stylesheetName": "Yaru-dark/gnome-shell.css",
"themeResourceName": "theme/Yaru/gnome-shell-theme.gresource",
"debugFlags": ["backtrace-crashes-all"],
"enabledExtensions": ["[email protected]", "[email protected]", "desktop-icons@csoriano"]
}
请注意默认 shell 主题和锁屏使用相同的文件.. 所以如果你想要 Yaru shell 主题作为桌面会话.. 你需要将它安装为另一个主题的本地主题。
我还没有尝试过.gresource
文件的完整路径..在行中
"themeResourceName": "theme/Yaru/gnome-shell-theme.gresource",
这意味着..theme/Yaru/gnome-shell-theme.gresource
是基础的相对路径/usr/share/gnome-shell
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句