Leo this will cause regressions, particularly for users of the high contrast theme.
The overrides should be only applied to Radiance/Ambiance so you should check that in addition to XDG_CURRENT_DESKTOP.
Or if you can make the actual Radiance/Ambiance themes behave properly then this patch can be dropped. However nautilus uses a completely non-standard implementation of header bars so I didnt want to mess with that.
Leo this will cause regressions, particularly for users of the high contrast theme.
The overrides should be only applied to Radiance/Ambiance so you should check that in addition to XDG_CURRENT_ DESKTOP.
Or if you can make the actual Radiance/Ambiance themes behave properly then this patch can be dropped. However nautilus uses a completely non-standard implementation of header bars so I didnt want to mess with that.