![在 Ubuntu 22.04 LTS 中切换暗模式和亮模式时自定义主题重置的问题](https://linux22.com/image/1199905/%E5%9C%A8%20Ubuntu%2022.04%20LTS%20%E4%B8%AD%E5%88%87%E6%8D%A2%E6%9A%97%E6%A8%A1%E5%BC%8F%E5%92%8C%E4%BA%AE%E6%A8%A1%E5%BC%8F%E6%97%B6%E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%BB%E9%A2%98%E9%87%8D%E7%BD%AE%E7%9A%84%E9%97%AE%E9%A2%98.png)
在创建自定义 ISO 映像时,我在 Ubuntu 22.04 LTS 中应用自定义主题时遇到了问题。首先,在10_ubuntu-settings.gschema.override
(位于usr/share/glib-2.0/schemas/
)中,我替换了以下值:
[org.gnome.desktop.interface:GNOME-Greeter]
gtk-theme = "MyTheme"
icon-theme = "MyTheme"
cursor-theme = "Yaru"
...
[org.gnome.desktop.interface:ubuntu]
gtk-theme = "MyTheme"
icon-theme = "MyTheme"
cursor-theme = "Yaru"
...
and other settings related to the theme display.
然后,我更新配置:
rm gschemas.compiled
glib-compile-schemas .
启动后,一切正常,所有主题都正确加载,但是,当我尝试将主题设置类型从深色切换为浅色或反之亦然时,所有主题都会重置。这可能是什么原因造成的,如何修复?
提前感谢您的回答!