mbridak / not1mm

Not1MM != N1MM, An amateur radio contest logger for Linux.
GNU General Public License v3.0
89 stars 18 forks source link

Cannot get dark mode with pipx install #50

Closed rolnas closed 7 months ago

rolnas commented 8 months ago

Describe the bug Cannot get dark mode with pipx install

To Reproduce Steps to reproduce the behavior:

  1. pipx install not1mm
  2. run not1mm

Expected behavior Dark mode

Desktop (please complete the following information):

Additional context QT_STYLE_OVERRIDE="Adwaita-Dark" doesn't solve, because it is not installed inside pipx venv for not1mm. Installed also adwaita-qt package in OS, but it looks it is not used inside pipx venv.

mbridak commented 8 months ago

Yup, that's true. I have the same issue. Dark Mode is a real PITA.

rolnas commented 8 months ago

Got it to work by manually creating directory ~/.local/pipx/venvs/not1mm/lib/python3.11/site-packages/PyQt5/Qt5/plugins/styles and symlink ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/styles/adwaita.so ~/.local/pipx/venvs/not1mm/lib/python3.11/site-packages/PyQt5/Qt5/plugins/styles/. File /usr/lib/x86_64-linux-gnu/qt5/plugins/styles/adwaita.so is from adwaita-qt package. A correct place were found by running strace -f not1mm with QT_STYLE_OVERRIDE=Adwaita-Dark.