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

LH calibration - Invisible text (dark theme) #691

Open
matejkarasek opened this issue Dec 11, 2023 · 6 comments · May be fixed by #726
Open

LH calibration - Invisible text (dark theme) #691

matejkarasek opened this issue Dec 11, 2023 · 6 comments · May be fixed by #726
Assignees
Labels

Comments

@matejkarasek
Copy link

matejkarasek commented Dec 11, 2023

The newly introduced dark/black theme is very nice!
Unfortunately, in the Lighthouse calibration wizard we now get white text on white background in the text field, where calibration result messages are plotted.

Observed in Win 11 with dark windows theme, cfcleint 2023.11 and the "default" cfclient theme

@knmcguire knmcguire added the bug label Dec 12, 2023
@knmcguire
Copy link
Member

Hi! Oh yes this is absolutely a bug. Thanks for spotting!

For reference, this is with the light theme it is supposed to look like this:

image
and in dark theme/hacker theme, it looks like this.
image

This is because we use .png with transparent background for the images... either we have to make a white variant of that, (which it switches if a black theme is selected) or add a colored background to it. The latter is probably better.

@matejkarasek
Copy link
Author

matejkarasek commented Dec 14, 2023

@knmcguire In fact, this is a different bug than what I reported...

What I observe might be related to Qt6 which seems to respond to the "light/dark" settings of the Windows 11 theme (Personalization --> Colors --> Choose your mode: "Light/Dark")

I use the "Dark" theme in Windows and now the cfclient with the "Default" theme looks like this (I like this very much):
Screenshot 2023-12-14 131512

However, if I want to do Lighthouse calibration then I get this:
Screenshot 2023-12-14 131728

Strangely, if I switch to a different cfclient theme (e.g. "Navy blue") and then switch back to "Default", this gets fixed (well the window title is still not visible...):
Screenshot 2023-12-14 131808

@knmcguire
Copy link
Member

Ahhh so that's a different issue! hmm... the first seems to be an actual bug in either windows or QT so that might be difficult to solve.

@matejkarasek
Copy link
Author

matejkarasek commented Dec 15, 2023

Not sure.... More info here, it seems that this autoswitching to dark mode is ("fusion" style of QT6) might be enabled in cfclient, and that there might be a conflict with some of the styles defined in cfclient?

@knmcguire
Copy link
Member

hmmm yeah, we have it enabled here:

app.setStyle("Fusion")

If I uncomment it, it won't switch to the dark theme so the problem is not there anymore. It is too bad but that would be the quickest solution.

Weirdly, the same thing doesn't happen for the other dialogs it seems like the initial geometry dialog where you have to start this wizard from.

I also noticed, if the theme is changed on windows while cfclient is started, it doesn't work great either

@knmcguire
Copy link
Member

This seems to be bugging more and more people so I propose just to remove that line. I need to wait until there are more people at the office to review the PRs, but at least I'll mark it for triage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants