-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows you to set a theme for Qt applications. For example, if you want to use `adwaita-qt` theme to have uniform look between Gtk and Qt applications, you can use it like this: ```nix { qt = { enable = true; platformTheme = "gnome"; style = { name = "adwaita"; package = pkgs.adwaita-qt; }; }; } ```
- Loading branch information
1 parent
39e4991
commit 0e2dc4b
Showing
5 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
qt-platform-theme-gtk = ./qt-platform-theme-gtk.nix; | ||
qt-platform-theme-gnome = ./qt-platform-theme-gnome.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
config = { | ||
qt = { | ||
enable = true; | ||
platformTheme = "gnome"; | ||
style = { | ||
name = "adwaita"; | ||
package = pkgs.dummyTheme; | ||
}; | ||
}; | ||
|
||
nixpkgs.overlays = [ | ||
(self: super: { | ||
dummyTheme = pkgs.runCommandLocal "theme" { } "mkdir $out"; | ||
}) | ||
]; | ||
|
||
nmt.script = '' | ||
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ | ||
'QT_QPA_PLATFORMTHEME="gnome"' | ||
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ | ||
'QT_STYLE_OVERRIDE="adwaita"' | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
config = { | ||
qt = { | ||
enable = true; | ||
platformTheme = "gtk"; | ||
}; | ||
|
||
nmt.script = '' | ||
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \ | ||
'QT_QPA_PLATFORMTHEME="gtk2"' | ||
''; | ||
}; | ||
} |