Closed Bug 1987300 Opened 1 year ago Closed 4 days ago

mozregression-gui text is unreadable and not good in Windows 11 dark theme

Categories

(Testing :: mozregression, defect, P2)

Desktop
Windows 11
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alice0775, Assigned: ollie)

References

Details

(Keywords: good-first-bug)

Attachments

(2 files, 1 external file)

on mozregression-gui 7.0.0rc
STR:

  1. Set Windows11 theme to dark color
  2. Start mozregression-gui
  3. Click on [S] etc

Actual results:
Background color and button hover color are broken and un-readble on hover

Expected results:
The Windows dark theme should be respected.
Or revert to the previous version.

This bug has been marked as a regression. Setting status flag for Nightly to affected.

Not a regression in Firefox, clearing the regression keyword to stop the bot

Severity: -- → S3
Priority: -- → P3
See Also: → 1998676

Workaround:

  1. Right mouse click on the "C:\Program Files (x86)\mozregression-gui\mozregression-gui.exe"
  2. Choose "Properties"
  3. Compatibility > Compatibility mode > Turn on "Run this program in compatibility mode for"
  4. Select "Windows 8" from drop-down menu
  5. Click on "OK" button
Duplicate of this bug: 2010011
Duplicate of this bug: 1998676
See Also: → 1381319, 2019518
Summary: mozregression-gui text is unreadable and not good in Windows11 Dark theme → mozregression-gui text is unreadable and not good in Windows 11 dark theme
See Also: → 2063943
Duplicate of this bug: 2063943
Severity: S3 → S2
Priority: P3 → P2
Assignee: nobody → ohensmancrook

tldr; we can call setWizardStyle(QWizard.WizardStyle.ModernStyle) in the wizard constructor.

I have done some digging after reading this stack overflow post and it seems that the default is to switch from the theme that is set, to Areo for QWizard unless explicitly overridden.

The windows 11 theme inherits from windows vista from what I can tell (based on observation), so this code is executed while initialising the wizard, setting the theme to Aero from whatever the system or configured theme is for windows. Then, Aero seems to explicitly sets the background colour to white.

From the post, setting ModernStyle overrides this behaviour, I think because that unsets the windows vista pending flag but I am not totally sure if that is the exact mechanism.

I have however tested that setting the theme there does fix the issue.

(In reply to Ollie Hensman-Crook [:ollie] from comment #7)

tldr; we can call setWizardStyle(QWizard.WizardStyle.ModernStyle) in the wizard constructor.

It is probably worth guarding this to only be set if the OS is windows.

(via GitHub webhook, authenticated as shared-secret)

Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: