fix(home-manager): assert qt.platformTheme.name for kvantum (#244)

* fix(home-manager): assert `qt.platformTheme.name` for kvantum

* fix(home-manager): account for qt.platformTheme being null

Co-authored-by: seth <getchoo@tuta.io>

* chore(modules): set `qt.platformTheme.name` in tests

---------

Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
pinkcreeper100 2024-06-27 03:58:11 +01:00 committed by GitHub
parent 51bd4ccfcf
commit e02aca950f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -39,6 +39,10 @@ in
];
message = ''`qt.style.name` must be `"kvantum"` to use `qt.style.catppuccin`'';
}
{
assertion = lib.elem (config.qt.platformTheme.name or null) [ "kvantum" ];
message = ''`qt.platformTheme.name` must be set to `"kvantum"` to use `qt.style.catppuccin`'';
}
];
xdg.configFile = {

View file

@ -121,6 +121,7 @@ testers.runNixOSTest {
};
qt = enable // {
platformTheme.name = "kvantum";
style.name = "kvantum";
};