docker-picard icon indicating copy to clipboard operation
docker-picard copied to clipboard

Dark mode not working

Open markalex2209 opened this issue 10 months ago • 0 comments

I tried to enable dark mode. According to the description in the parent image this is possible with the use of environment variable DARK_MODE.

Simply adding -e DARK_MODE=1 to docker run command didn't help (color of popup from novnc and picard's header changed, but not application itself).

Also, in logs following message started appearing during application start:

[app         ] QApplication: invalid style override 'Adwaita-Dark' passed, ignoring it.
[app         ]  Available styles: Windows, Fusion

Installation of adwaita-qt package didn't help.


As I understand problem is PyQt being installed with pip, and not seeing styles added by adwaita-qt package.

Uninstallation of PyQt with pip and following installation of it with apt enables dark mode in application (and breaks almost everything else)

Here's example of dockerfile I used to get dark mode

FROM mikenye/picard

RUN pip uninstall -y pyqt5

RUN  apt-get update && \
    apt-get install -y python3-pyqt5 adwaita-qt

Is it somehow possible to get dark mode working without breaking functionality of the app?

markalex2209 avatar Apr 12 '24 18:04 markalex2209