Skip to content

adwaita-qt: dark theme for Qt applications doesn’t work on NixOS 20.09 #98009

@unclechu

Description

@unclechu

It used to work before 20.09 on nixos-unstable channel.

Here https://github.com/unclechu/nixos-config/blob/41e8bc34a12d018f645cfabcd892cab381e583c1/configuration.nix#L144-L148 I’m setting Qt theme:

  qt5 = {
    enable = true;
    platformTheme = "gnome";
    style = "adwaita-dark";
  };

If I for instance run vlc I see this error message telling me that adwaita-dark is an incorrect style value:

VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[0000000000649610] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QApplication: invalid style override 'adwaita-dark' passed, ignoring it.
	Available styles: Windows, Fusion

Same story for other apps like smplayer, audacious and psi-plus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: qt/kdeObject-oriented framework for GUI creation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions