#15342 closed enhancement (fixed)

Add dark theme support

Reported by: stavros.azinas@… Owned by:
Priority: low Milestone: 1.9
Component: UI Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

It would be nice if ChimeraX respected the user's choice of using dark theme for applications. In Qt 6.5, that becomes possible. See https://www.qt.io/blog/dark-mode-on-windows-11-with-qt-6.5 for some details.

To experiment with dark theme support, you can modify site-packages/chimerax/ui/gui.py and add:

self.setStyle('fusion')

after QApplication has been initialized (line 112 or so):

QApplication.init(self, [ad.appname])

Then ChimeraX will try to follow the user's theme. Clearly more needs to be done. Both in supporting a dark theme (HTML widgets like the log), and responding to theme changes (eg., the toolbar).

Change History (5)

comment:1 by Greg Couch, 17 months ago

Milestone: 1.9

comment:2 by Zach Pearson, 17 months ago

What platform and version are you on? On my work Mac, ChimeraX 1.7.1 responds to changing the OS theme for me.

comment:3 by Greg Couch, 17 months ago

This is on Linux and Windows.

comment:4 by Greg Couch, 17 months ago

Might not be needed with Qt 6.6.

comment:5 by Greg Couch, 15 months ago

Resolution: fixed
Status: newclosed

Dark theme support is in daily build. Please report any bug with unreadable text.

Note: See TracTickets for help on using tickets.