NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.2k stars 14.2k forks source link

Calibre uses its own style instead of using adwaita / gnome #324082

Open KCynk opened 4 months ago

KCynk commented 4 months ago

Describe the bug

Calibre uses its own style instead of using adwaita / gnome

Steps To Reproduce

 environment.sessionVariables = {
    CALIBRE_USE_SYSTEM_THEME = "true";
  };

 environment.systemPackages = with pkgs; [
    adwaita-qt
    calibre
    qgnomeplatform
 ];

Screenshot from 2024-07-02 17-51-37

Metadata

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

[nix@87a9f8f3b6a231:~] nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.36, NixOS, 24.11 (Vicuna), 24.11pre646099.00d80d13810d`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos

eclairevoyant commented 4 months ago

Did you reboot after setting the envvar and rebuilding?

KCynk commented 4 months ago

Did you reboot after setting the envvar and rebuilding?

Yes, looks like all app in calibre package are affected Screenshot from 2024-07-02 18-09-06

eclairevoyant commented 4 months ago

Works fine on my end. Maybe you've not configured your QT theme appropriately?

image

KCynk commented 4 months ago

Problem still exist even with this options

  environment.sessionVariables = {
    CALIBRE_USE_SYSTEM_THEME = "true";
    QT_STYLE_OVERRIDE = "adwaita";
    QT_WAYLAND_DECORATION = "adwaita";
    QT_QPA_PLATFORMTHEME = "gnome";
    QT_QPA_PLATFORM = "wayland";
  };
Guanran928 commented 4 months ago

That looks like Qt's CSD. PrismLauncher also shows that when using Wayland on GNOME. image