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";
hardware.bluetooth.enable = true;
@ -70,8 +75,7 @@
gtk.iconCache.enable = true;
qt = {
enable = true;
style = "adwaita";
platformTheme = "gnome";
style = if config.lib.stylix.scheme.variant == "light" then "adwaita" else "adwaita-dark";
};
services = {
gnome.gnome-keyring.enable = true;