2021-03-04 04:20:17 +01:00
|
|
|
{
|
|
|
|
config = {
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-03-20 08:41:18 +01:00
|
|
|
# Check if still backwards compatible
|
2021-03-04 04:20:17 +01:00
|
|
|
platformTheme = "gnome";
|
2023-02-20 12:30:29 +01:00
|
|
|
style.name = "adwaita";
|
2021-03-04 04:20:17 +01:00
|
|
|
};
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
test.stubs.qgnomeplatform = { };
|
2021-03-04 04:20:17 +01: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 13:54:36 +02: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 04:20:17 +01:00
|
|
|
'';
|
2024-03-24 15:52:14 +01: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 04:20:17 +01:00
|
|
|
};
|
|
|
|
}
|