Loading nixos/modules/config/qt5.nix +12 −1 Original line number Diff line number Diff line Loading @@ -9,10 +9,12 @@ let isQGnome = cfg.platformTheme == "gnome" && builtins.elem cfg.style ["adwaita" "adwaita-dark"]; isQtStyle = cfg.platformTheme == "gtk2" && !(builtins.elem cfg.style ["adwaita" "adwaita-dark"]); isQt5ct = cfg.platformTheme == "qt5ct"; isLxqt = cfg.platformTheme == "lxqt"; packages = if isQGnome then [ pkgs.qgnomeplatform pkgs.adwaita-qt ] else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins ] else if isQt5ct then [ pkgs.libsForQt5.qt5ct ] else if isLxqt then [ pkgs.lxqt.lxqt-qtplugin pkgs.lxqt.lxqt-config ] else throw "`qt5.platformTheme` ${cfg.platformTheme} and `qt5.style` ${cfg.style} are not compatible."; in Loading @@ -29,6 +31,7 @@ in type = types.enum [ "gtk2" "gnome" "lxqt" "qt5ct" ]; example = "gnome"; Loading @@ -36,6 +39,7 @@ in "qgnomeplatform" ["libsForQt5" "qtstyleplugins"] ["libsForQt5" "qt5ct"] ["lxqt" "lxqt-qtplugin"] ]; description = '' Selects the platform theme to use for Qt5 applications.</para> Loading @@ -53,6 +57,13 @@ in <link xlink:href="https://github.com/FedoraQt/QGnomePlatform">qgnomeplatform</link> </para></listitem> </varlistentry> <varlistentry> <term><literal>lxqt</literal></term> <listitem><para>Use LXQt style set using the <link xlink:href="https://github.com/lxqt/lxqt-config">lxqt-config-appearance</link> application. </para></listitem> </varlistentry> <varlistentry> <term><literal>qt5ct</literal></term> <listitem><para>Use Qt style set using the Loading Loading @@ -108,7 +119,7 @@ in environment.variables.QT_QPA_PLATFORMTHEME = cfg.platformTheme; environment.variables.QT_STYLE_OVERRIDE = mkIf (! isQt5ct) cfg.style; environment.variables.QT_STYLE_OVERRIDE = mkIf (! (isQt5ct || isLxqt)) cfg.style; environment.systemPackages = packages; Loading Loading
nixos/modules/config/qt5.nix +12 −1 Original line number Diff line number Diff line Loading @@ -9,10 +9,12 @@ let isQGnome = cfg.platformTheme == "gnome" && builtins.elem cfg.style ["adwaita" "adwaita-dark"]; isQtStyle = cfg.platformTheme == "gtk2" && !(builtins.elem cfg.style ["adwaita" "adwaita-dark"]); isQt5ct = cfg.platformTheme == "qt5ct"; isLxqt = cfg.platformTheme == "lxqt"; packages = if isQGnome then [ pkgs.qgnomeplatform pkgs.adwaita-qt ] else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins ] else if isQt5ct then [ pkgs.libsForQt5.qt5ct ] else if isLxqt then [ pkgs.lxqt.lxqt-qtplugin pkgs.lxqt.lxqt-config ] else throw "`qt5.platformTheme` ${cfg.platformTheme} and `qt5.style` ${cfg.style} are not compatible."; in Loading @@ -29,6 +31,7 @@ in type = types.enum [ "gtk2" "gnome" "lxqt" "qt5ct" ]; example = "gnome"; Loading @@ -36,6 +39,7 @@ in "qgnomeplatform" ["libsForQt5" "qtstyleplugins"] ["libsForQt5" "qt5ct"] ["lxqt" "lxqt-qtplugin"] ]; description = '' Selects the platform theme to use for Qt5 applications.</para> Loading @@ -53,6 +57,13 @@ in <link xlink:href="https://github.com/FedoraQt/QGnomePlatform">qgnomeplatform</link> </para></listitem> </varlistentry> <varlistentry> <term><literal>lxqt</literal></term> <listitem><para>Use LXQt style set using the <link xlink:href="https://github.com/lxqt/lxqt-config">lxqt-config-appearance</link> application. </para></listitem> </varlistentry> <varlistentry> <term><literal>qt5ct</literal></term> <listitem><para>Use Qt style set using the Loading Loading @@ -108,7 +119,7 @@ in environment.variables.QT_QPA_PLATFORMTHEME = cfg.platformTheme; environment.variables.QT_STYLE_OVERRIDE = mkIf (! isQt5ct) cfg.style; environment.variables.QT_STYLE_OVERRIDE = mkIf (! (isQt5ct || isLxqt)) cfg.style; environment.systemPackages = packages; Loading