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/Qt theme not working #244895

Closed
musjj opened this issue Jul 22, 2023 · 3 comments · Fixed by #245571
Closed

GTK/Qt theme not working #244895

musjj opened this issue Jul 22, 2023 · 3 comments · Fixed by #245571
Labels
0.kind: bug Something is broken

Comments

@musjj
Copy link
Contributor

musjj commented Jul 22, 2023

Describe the bug

I've followed the instructions described in the manual, but Qt applications are not using my GTK theme.

Steps To Reproduce

qt.enable = true;
qt.platformTheme = "gtk2";
qt.style = "gtk2";
environment.systemPackages = [ pkgs.qalculate-qt ];

Running qalculate-qt will yield the following error:

QApplication: invalid style override 'gtk2' passed, ignoring it.
	Available styles: Windows, Fusion

Expected behavior

Qt applications should properly detect the gtk2 style.

Notify maintainers

@romildo

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.39, NixOS, 23.11 (Tapir), 23.11.20230721.9ca7856`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - nixpkgs: `/nix/store/d1fspdh09fpk7dkl5s667vhpkgv12dsx-source`
@musjj musjj added the 0.kind: bug Something is broken label Jul 22, 2023
@bobby285271
Copy link
Member

bobby285271 commented Jul 23, 2023

Yeah qalculate-qt (and anki) are Qt 6 applications, I expect the gtk2 style not working before someone package https://github.com/trialuser02/qt6gtk2 (theming for Qt 5 should work since we have https://github.com/qt/qtstyleplugins though 🙃)

@Misterio77
Copy link
Member

Misterio77 commented Jul 26, 2023

Here's qt6gtk2: #245571

With that PR merged, this issue should be fixed right out of the box when using NixOS to manage qt.

@musjj
Copy link
Contributor Author

musjj commented Jul 27, 2023

Thank you for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants