Set Qt style variant based on stylix theme variant

This commit is contained in:
Evie Litherland-Smith 2024-12-22 06:43:30 +00:00
parent 05badee8a3
commit b1a0cfa584

View file

@ -1,4 +1,9 @@
{ pkgs, username, ... }: {
config,
pkgs,
username,
...
}:
{ {
nixpkgs.config.chromium.commandLineArgs = "--password-store='gnome-libsecret' --enable-features=UseOzonePlatform --ozone-platform=wayland"; nixpkgs.config.chromium.commandLineArgs = "--password-store='gnome-libsecret' --enable-features=UseOzonePlatform --ozone-platform=wayland";
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
@ -70,8 +75,7 @@
gtk.iconCache.enable = true; gtk.iconCache.enable = true;
qt = { qt = {
enable = true; enable = true;
style = "adwaita"; style = if config.lib.stylix.scheme.variant == "light" then "adwaita" else "adwaita-dark";
platformTheme = "gnome";
}; };
services = { services = {
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;