KDE: Difference between revisions
m fixed syntax mistake |
m Fix outdated config path |
||
| Line 70: | Line 70: | ||
enable = true; | enable = true; | ||
platformTheme = "gnome"; | platformTheme = "gnome"; | ||
style | style = "adwaita-dark"; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 76: | Line 76: | ||
For other themes, you may need the packages <code>libsForQt5.qt5ct</code> and <code>libsForQt5.qtstyleplugin-kvantum</code> and a symlink from <code>~/.config/Kvantum/</code> to your theme package. Here is an example using Arc-Dark and [[Home Manager]]. In the Home Manager configuration: | For other themes, you may need the packages <code>libsForQt5.qt5ct</code> and <code>libsForQt5.qtstyleplugin-kvantum</code> and a symlink from <code>~/.config/Kvantum/</code> to your theme package. Here is an example using Arc-Dark and [[Home Manager]]. In the Home Manager configuration: | ||
< | <syntaxhighlight lang="nix"> | ||
qt = { | qt = { | ||
enable = true; | enable = true; | ||
platformTheme = "qtct"; | platformTheme = "qtct"; | ||
style | style = "kvantum"; | ||
}; | }; | ||
| Line 87: | Line 87: | ||
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=ArcDark"; | "Kvantum/kvantum.kvconfig".text = "[General]\ntheme=ArcDark"; | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
For more details, see [https://discourse.nixos.org/t/guide-to-installing-qt-theme/35523/2 this] forum post. | For more details, see [https://discourse.nixos.org/t/guide-to-installing-qt-theme/35523/2 this] forum post. | ||