mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 08:31:03 +01:00
tests/gtk: refactor and organize
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
18ff4e1e11
commit
47443585fe
28 changed files with 175 additions and 113 deletions
25
tests/modules/misc/gtk/gtk4/gtk4-no-theme-css-injection.nix
Normal file
25
tests/modules/misc/gtk/gtk4/gtk4-no-theme-css-injection.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
# 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue