KDE: Difference between revisions
imported>Steadygaze Undo revision 11382 by Steadygaze (talk) |
imported>Lumarius Added an example for installing a Qt theme using Kvantum. |
||
Line 41: | Line 41: | ||
=== GNOME desktop integration === | === GNOME desktop integration === | ||
Using the following example configuration, QT applications will have a look similar to the [[GNOME]] desktop, using a dark theme | Using the following example configuration, QT applications will have a look similar to the [[GNOME]] desktop, using a dark theme. | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
Line 50: | Line 50: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
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 an example using Arc-Dark. | |||
<syntaxHighlight lang=nix> | |||
qt = { | |||
enable = true; | |||
platformTheme = "qtct"; | |||
style.name = "kvantum"; | |||
}; | |||
xdg.configFile = { | |||
"Kvantum/ArcDark".source = "${pkgs.arc-kde-theme}/share/Kvantum/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. | |||
== Troubleshoots == | == Troubleshoots == |