On Mac (and likely other systems) in dark mode, the attribute table displays as white text on a white background, because the code that updates the table background based on whether the deviation is within the specified limit is hard coded to a white (when out of range) or a green (when in range) background. This PR fixes that by using QPalette to retrieve the default window background color from the system to use when deviation is out of range. Only tested on Mac so far.
I do not know if this works for the user-submitted fields which still appear in white on my screen, but it works fine in Linux so I've merged it. Thank you for the improvement!
On Mac (and likely other systems) in dark mode, the attribute table displays as white text on a white background, because the code that updates the table background based on whether the deviation is within the specified limit is hard coded to a white (when out of range) or a green (when in range) background. This PR fixes that by using QPalette to retrieve the default window background color from the system to use when deviation is out of range. Only tested on Mac so far.