Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtk 4 apps theme in GNOME 44 cannot be switched with system settings #252

Open
suiahae opened this issue Apr 24, 2023 · 5 comments
Open

Comments

@suiahae
Copy link

suiahae commented Apr 24, 2023

gnome 44 中 gtk 4 应用的主题无法随系统设置(暗色样式)切换。

而 gtk 3 应用的主题可以。

操作系统:Fedora Workstation 38
桌面版本:GNOME 44.0-1.fc38
gtk-3.0 主题:vimix-light-doder

gtk-4.0 链接亮色主题:./install.sh -c light -l

暗色样式关闭
图片
暗色样式开启
图片

gtk-4.0 链接暗色主题:./install.sh -c dark -l ,重启

暗色样式关闭
图片
暗色样式开启
图片

基于 gtk-3.0 的“优化”主题随设置更改自动切换,但基于 gtk-4.0 的“文件”主题,在不重新链接前,即使重启也不会切换。

我看到“链接目录”里有 gtk-dark.css 文件,所以这是 GNOME 44 的 bug 还是主题的呢?

图片

@vinceliuice
Copy link
Owner

Gnome44已经不支持第三方主题啦,这个只是一个破解的方法而已,把主题写入gtk4.0的配置文件里强制所有gtk4软件使用指定主题所以会破坏原生系统的暗黑主题切换,目前暂时无解,以后会考虑将主题移植到libadwaita的lib文件里替换掉原生主题应该就可以支持暗黑主题的切换啦

@vinceliuice
Copy link
Owner

自由切换主题的话目前依然无解,除非有人制作第三方的软件去切换,官方的gnome-tweaks只支持gtk3软件切换主题

@suiahae
Copy link
Author

suiahae commented Apr 26, 2023

好滴,Vince 加油💪

@vinceliuice
Copy link
Owner

vinceliuice commented Apr 26, 2023

好的

@sudoshindo
Copy link

Is it still impossible to support this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants