MuonPi/muondetector

Unreadable labels on macOS "dark theme"

Closed this issue · 2 comments

When setting the native system theme of macOS (10.14) to "dark", the GUI does automatically adapt the colours, which works fine, except in places where the background-colour is fixed to white. As the text-colour changes to white for the dark theme, the labels and ticks of plot axes render unreadable.

Here are two screenshots of the GUI (version 2.0.2 installed from this release) comparing the macOS themes "bright" and "dark":

Bildschirmfoto 2022-05-02 um 13 36 10

Bildschirmfoto 2022-05-02 um 13 35 20

A solution would be to fix the text-colour to black wherever the background-colour is fixed to a bright colour (notice that the boxes for time pulse and MQTT connection statuses are also barely readable). This wouldn't affect the bright theme or any other system that has no native dark theme.

The issue seems to be fixed for the time being with PR #75. However, it would be nice if also the Qwt widgets would follow the system-wide applied theme and switch to e.g. dark background when dark theme is selected. Is there any chance that this could be realized?

With commit 86c8a03 all widgets should now adjust automatically to the currently selected color theme. Tested under Linux Mint 20.3 (Una) and MATE desktop. Plz. reopen issue in case there are still some problems with this in your environment
Screenshot
Screenshot
Screenshot
.