2021-03-04 03:20:17 +00:00
|
|
|
{
|
|
|
|
config = {
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-03-20 07:41:18 +00:00
|
|
|
# Check if still backwards compatible
|
2021-03-04 03:20:17 +00:00
|
|
|
platformTheme = "gnome";
|
2023-02-20 11:30:29 +00:00
|
|
|
style.name = "adwaita";
|
2021-03-04 03:20:17 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
test.stubs.qgnomeplatform = { };
|
2021-03-04 03:20:17 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QT_QPA_PLATFORMTHEME="gnome"'
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QT_STYLE_OVERRIDE="adwaita"'
|
2023-10-18 11:54:36 +00:00
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QT_PLUGIN_PATH'
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QML2_IMPORT_PATH'
|
2021-03-04 03:20:17 +00:00
|
|
|
'';
|
2024-03-24 14:52:14 +00:00
|
|
|
test.asserts.warnings.expected = [
|
|
|
|
"The option `qt.platformTheme` has been renamed to `qt.platformTheme.name`."
|
|
|
|
"The value `gnome` for option `qt.platformTheme` is deprecated. Use `adwaita` instead."
|
|
|
|
];
|
2021-03-04 03:20:17 +00:00
|
|
|
};
|
|
|
|
}
|