NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.11k forks source link

Anki does not pick up gtk theme #126630

Open legendofa opened 3 years ago

legendofa commented 3 years ago

Describe the bug A system-wide gtk theme is installed in enviroment.systemPackages and visible in other applications. Anki does not pick up this theme. Tried https://faqs.ankiweb.net/anki-not-picking-up-gtk-theme-on-gnome.html with no success (for Gnome not other WMs anyway).

To Reproduce Steps to reproduce the behavior:

  1. Install Anki
  2. Install system-wide gtk theme

Expected behavior Theme is applied.

Notify maintainers

@Profpatsch @oxij

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

 - system: `"x86_64-linux"`
 - host os: `Linux 5.11.22, NixOS, 20.09.4316.85ed11208f8 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.11`
 - channels(julian): `""`
 - channels(root): `"nixos-20.09.4316.85ed11208f8"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
legendofa commented 3 years ago

I switched the package to this one to update the version 2.1.15 -> 2.1.44: https://github.com/NixOS/nixpkgs/blob/nixos-21.05/pkgs/games/anki/bin.nix#L31

The problem persits.

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

euank commented 1 year ago

This might be fixed by https://github.com/NixOS/nixpkgs/pull/221229

Want to test?

That said, anki is a qt application, so theming might require some qt configuration too. Do other qt applications theme correctly for you?

musjj commented 1 year ago

IIRC, Anki uses a lot of webviews for its UI so even if the GTK/Qt theme is working, only a small portion of the UI will be themed. I think the only way to properly theme it is to use plugins.

This is based on my experience on Arch, since GTK/Qt theme is currently not working on NixOS for me (https://github.com/NixOS/nixpkgs/issues/244895)