Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode not working #82

Open
markalex2209 opened this issue Apr 12, 2024 · 0 comments
Open

Dark mode not working #82

markalex2209 opened this issue Apr 12, 2024 · 0 comments

Comments

@markalex2209
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant