Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded background colour in the GUI dialogs #432

Merged
merged 1 commit into from
May 3, 2024

Conversation

MBartkowiakSTFC
Copy link
Collaborator

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.

@MBartkowiakSTFC MBartkowiakSTFC requested a review from ChiCheng45 May 3, 2024 08:18
Copy link
Collaborator

@ChiCheng45 ChiCheng45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I tested on Windows with dark mode and I can see the text now.

@ChiCheng45 ChiCheng45 merged commit 995c338 into protos May 3, 2024
84 checks passed
@MBartkowiakSTFC MBartkowiakSTFC deleted the correct-gui-dark-mode branch July 9, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants