Feature Resquest: Add Dark Mode Support for the internal Stylesheet
When Windows is configured to use dark mode (Settings → Personalization → Colours → Change the colours that appear in Windows and your apps: Dark), the tab text for non-active tabs is not visible in the Advanced Docking System.
This appears to be a style inheritance issue, where the default stylesheet or palette does not ensure sufficient contrast for inactive tabs.
Steps to Reproduce
- Set Windows App Mode to Dark
- Launch an application using ads::CDockManager
- Add multiple tabs to a DockArea
Observe that only the active tab shows text; there is not enough contrast in inactive tabs to discern any text.
Workaround
Calling:
dockManager->setStyleSheet("");
resolves the issue, making all tab labels visible, however they do not highlight when selected.
Expected Behaviour: Inactive tab labels should remain readable by default, regardless of the system colour mode.
Environment
- Windows 11 Pro 24H2 26100.4349
- ADS version: master
- Qt version: 6.8.3
The internal stylesheet currently only supports light themes. A solution would be to provide your own stylesheet.
I will try to enhance the internal stylesheet to improve darktheme support.