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

opensnitch ui not changing to dark mode when my style is "Arch-Dark" #303

Closed
freddii opened this issue Dec 17, 2020 · 6 comments
Closed

Comments

@freddii
Copy link
Contributor

freddii commented Dec 17, 2020

First of all it is a really usefull program :)

feature request
At the moment opensnitchs ui is not changing to dark mode when my style is "Arch-Dark".
I like it to change colors when style changes like other programs like freetuxtv or firefox do it.
dark-bug

setup:
GTK Theme: Arc-Dark [GTK2]
Icon Theme: Papirus-Dark

To Reproduce
In xfce:

sudo apt install arc-theme papirus-icon-theme -y

settings-manager > appearance > Style > Arc Dark
settings-manager > appearance > Icons > Papirus Dark

@gustavo-iniguez-goya
Copy link
Collaborator

ok, thank you @freddii !

I'll look into it.

@gustavo-iniguez-goya
Copy link
Collaborator

As far as I can tell, this is a problem of the Desktop Environment and how it handles other kind of graphical tookit different to GTK. You're running a Qt app on a GTK environment, so I guess that this problem is not particular to OpenSnitch, but all Qt apps.

On KDE works as expected when you change to a Dark style theme.

https://www.youtube.com/watch?v=rP4DWu24ff0
https://askubuntu.com/questions/51166/how-to-make-qt-programs-look-good-under-xfce

@freddii
Copy link
Contributor Author

freddii commented Dec 28, 2020

Thanks for your help.
The youtube video instruction fixed it.
In short:

sudo apt-get install -y qt5-style-plugins
sudo cat << EOF | sudo tee  /etc/environment
QT_QPA_PLATFORMTHEME=gtk2
EOF

@gustavo-iniguez-goya
Copy link
Collaborator

instructions added to the Known Problems wiki page.

@Ud4ba
Copy link

Ud4ba commented Sep 25, 2021

This happens only on Gnome?

@gustavo-iniguez-goya
Copy link
Collaborator

gustavo-iniguez-goya commented Sep 26, 2021

nope @Ud4ba, , as far as I can tell this problem affects all GTK based Desktop Environments.
To workaround this problem it's planned to add an option to change the style: #424 (comment)

gustavo-iniguez-goya added a commit that referenced this issue Mar 22, 2022
Now the user can personalize GUI's appearance (#424).

There're 15 default themes, dark and light, that will help integrating
on some environments (#303, #335).

More themes can be added, by creating a new xml under
~/.config/opensnitch/themes/ or
/usr/lib/python3/dist-packages/opensnitch/

The lib used is https://github.com/UN-GCPDS/qt-material.
https://github.com/UN-GCPDS/qt-material#custom-colors
gustavo-iniguez-goya added a commit that referenced this issue Apr 6, 2022
Now the user can personalize GUI's appearance (#424).

There're 15 default themes, dark and light, that will help integrating
on some environments (#303, #335).

More themes can be added, by creating a new xml under
~/.config/opensnitch/themes/ or
/usr/lib/python3/dist-packages/opensnitch/

The lib used is https://github.com/UN-GCPDS/qt-material.
https://github.com/UN-GCPDS/qt-material#custom-colors
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

3 participants