ISISNeutronMuon / MDANSE

MDANSE: Molecular Dynamics Analysis for Neutron Scattering Experiments
https://www.isis.stfc.ac.uk/Pages/MDANSEproject.aspx
GNU General Public License v3.0
18 stars 4 forks source link

Remove hardcoded background colour in the GUI dialogs #432

Closed MBartkowiakSTFC closed 2 months ago

MBartkowiakSTFC commented 2 months ago

Description of work Hardcoded font/background colour made it impossible to see the text in some GUI components, notably the chemical element viewer and the data list in the plotter. The solution is to remove the custom formatting wherever possible and have the GUI rely on the system style settings.

Fixes Colour setting code has been removed wherever necessary.

To test Please start the GUI and open the following GUI elements:

  1. Periodic table viewer.
  2. Atom information in the periodic table viewer for any specific atom.
  3. Data plotter with any data file loaded. Try changing the style sheets. All the background and font colours should change accordingly.