about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2020-04-24 08:47:21 -0400
committerGitHub <noreply@github.com>2020-04-24 08:47:21 -0400
commit90e16f7ed615cc9ab1948262cf37a78f917b6769 (patch)
treee0873110b2b0531d95dc55c6f00958ab4739ba87 /nixos/modules
parent78250e8040b5bc11f30326cce3d1895606da1f60 (diff)
parenta6580c31644a1f3cad187e15122ee756af57af4a (diff)
downloadnixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.tar
nixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.tar.gz
nixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.tar.bz2
nixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.tar.lz
nixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.tar.xz
nixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.tar.zst
nixlib-90e16f7ed615cc9ab1948262cf37a78f917b6769.zip
Merge pull request #84242 from gnidorah/qt
nixos/qt5: support adwaita-dark theme
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/config/qt5.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/config/qt5.nix b/nixos/modules/config/qt5.nix
index d9dec74f1552..eabba9ad95f0 100644
--- a/nixos/modules/config/qt5.nix
+++ b/nixos/modules/config/qt5.nix
@@ -6,8 +6,8 @@ let
 
   cfg = config.qt5;
 
-  isQGnome = cfg.platformTheme == "gnome" && cfg.style == "adwaita";
-  isQtStyle = cfg.platformTheme == "gtk2" && cfg.style != "adwaita";
+  isQGnome = cfg.platformTheme == "gnome" && builtins.elem cfg.style ["adwaita" "adwaita-dark"];
+  isQtStyle = cfg.platformTheme == "gtk2" && !(builtins.elem cfg.style ["adwaita" "adwaita-dark"]);
 
   packages = if isQGnome then [ pkgs.qgnomeplatform pkgs.adwaita-qt ]
     else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins ]
@@ -55,6 +55,7 @@ in
       style = mkOption {
         type = types.enum [
           "adwaita"
+          "adwaita-dark"
           "cleanlooks"
           "gtk2"
           "motif"
@@ -71,6 +72,7 @@ in
           <variablelist>
             <varlistentry>
               <term><literal>adwaita</literal></term>
+              <term><literal>adwaita-dark</literal></term>
               <listitem><para>Use Adwaita Qt style with
                 <link xlink:href="https://github.com/FedoraQt/adwaita-qt">adwaita</link>
               </para></listitem>