Qt-Advanced-Docking-System icon indicating copy to clipboard operation
Qt-Advanced-Docking-System copied to clipboard

Feature Resquest: Add Dark Mode Support for the internal Stylesheet

Open LangleJ opened this issue 6 months ago • 1 comments

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

  1. Set Windows App Mode to Dark
  2. Launch an application using ads::CDockManager
  3. 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

LangleJ avatar Jun 16 '25 06:06 LangleJ

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.

githubuser0xFFFF avatar Jul 30 '25 19:07 githubuser0xFFFF