GNOME: Difference between revisions
→GNOME power user tips: Change to apps instead of tips |
→Tips and tricks: Add section for Qt integration with GNOME |
||
| Line 116: | Line 116: | ||
The GNOME shell extension [https://extensions.gnome.org/extension/3843/just-perfection/ Just Perfection] also allows for customizing nearly all parts of the GNOME shell interface. | The GNOME shell extension [https://extensions.gnome.org/extension/3843/just-perfection/ Just Perfection] also allows for customizing nearly all parts of the GNOME shell interface. | ||
=== GNOME Qt integration === | |||
Using the following example configuration, QT applications will have a look similar to the adwaita style used by [[GNOME]] , using a dark theme. | |||
{{File|3={ | |||
qt = { | |||
enable = true; | |||
platformTheme = "gnome"; | |||
style = "adwaita-dark"; | |||
}; | |||
}|name=/etc/nixos/configuration.nix|lang=nix}} | |||
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: | |||
{{File|3={ | |||
qt = { | |||
enable = true; | |||
platformTheme = "qtct"; | |||
style = "kvantum"; | |||
}; | |||
xdg.configFile = { | |||
"Kvantum/ArcDark".source = "${pkgs.arc-kde-theme}/share/Kvantum/ArcDark"; | |||
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=ArcDark"; | |||
}; | |||
}|name=~/.config/home-manager/home.nix|lang=nix}} | |||
For more details, see [https://discourse.nixos.org/t/guide-to-installing-qt-theme/35523/2 this] forum post.{{Note|Qt integration with the adwaita style isn't perfect and your mileage may vary.}} | |||
=== Experimental settings === | === Experimental settings === | ||