mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
207 stars 121 forks source link

Texts on the Mantid Workbench Main Menu could not be seen on OSX Dark mode #37376

Open yusufjimoh opened 1 month ago

yusufjimoh commented 1 month ago

Describe the bug Texts on the Mantid main menu turns white and becomes invisible on OSX when the device display is in dark mode.

To Reproduce

For example

  1. Change Mac OSX Display to Dark mode
  2. Launch the mantid Workbench

Expected behavior Texts should be visible on the main menu when device display is on dark mode.

Screenshots

Screenshot 2024-05-15 at 20 14 00

Platform/Version:

jhaigh0 commented 3 weeks ago

This would be easy to detect using Qt 6.5 where they've added colorScheme to the style hints https://doc.qt.io/qt-6/qstylehints.html#colorScheme-prop

There might be a hacky way to do it though. On macos you can run defaults read -g AppleInterfaceStyle to get the dark/light theme.