mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
25 lines
566 B
Nix
25 lines
566 B
Nix
{
|
|
# Test GTK4 theme CSS injection with both theme and custom CSS
|
|
gtk = {
|
|
enable = true;
|
|
|
|
gtk4 = {
|
|
extraCss = ''
|
|
/* Custom user CSS */
|
|
window {
|
|
background-color: #2d2d2d;
|
|
}
|
|
|
|
button {
|
|
border-radius: 8px;
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
# GTK4 CSS should exist and contain no theme import and only custom CSS
|
|
assertFileExists home-files/.config/gtk-4.0/gtk.css
|
|
assertFileContent home-files/.config/gtk-4.0/gtk.css ${./gtk4-no-theme-css-injection-expected.css}
|
|
'';
|
|
}
|