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 does not work #1581

Open
newyorkthink opened this issue Dec 3, 2023 · 8 comments
Open

Dark mode does not work #1581

newyorkthink opened this issue Dec 3, 2023 · 8 comments

Comments

@newyorkthink
Copy link

AppimGe format
i3wm
latest version 7

restart it

image
image

dark not working

@davemilter
Copy link

For me, the right pane (with content, not empty) has proper dark mode,
but the left pane with search results is white color, that hurt eyes in dark room.

@Dushistov
Copy link

Looks like this is Qt 6 vs Qt 5 issues.

Here how zeal 0.7.0 looks with Qt6 and "dark" theme selected with help of qt6ct:
2023-12-24_14-01

and here are Qt5 and qt5ct:
2023-12-24_13-57

assistant from Qt6 has the same problem in compare with assistant from Qt5.

@novaTopFlex
Copy link

Unsure about my current Qt version, but one of my Dash Docsets (Mastodon, a user contribution) is already on a dark background color by default and becomes brighter when my browser is set to dark mode. I have reverted to using light mode by the way.

@hatifnatt
Copy link

Issue is still actual and it's definitely related to Qt6, after my distro upgraded to Qt6 dark theme for docs are gone, only app UI is dark. And yes, that hurts eyes...

@trollixx
Copy link
Member

trollixx commented Jun 14, 2024

Zeal relies on Qt for widget styling. On Linux it used to be very well supported and consistent. Unfortunately, with Qt 6 that's no longer true in many cases. One possible solution would be using dark mode aware Fusion style by default. Adding style selector in the settings would let users choose any other style if they managed to figure out Qt styling on their systems.

Running Zeal with -style Fusion should also do the trick without any code changes.

@trollixx trollixx changed the title dark mode not work, Dark mode does not work Jun 14, 2024
@guidomz
Copy link

guidomz commented Jun 19, 2024

Using qt5ct on Debian Bookwork, I managed to darken the Zeal version from the Debian packages (v0.6.2-dev) by running as instructed:

Running Zeal with -style Fusion should also do the trick without any code changes.

However, I still can't make this work on the AppImage release of Zeal (0.7.1).

@trollixx
Copy link
Member

However, I still can't make this work on the AppImage release of Zeal (0.7.1).

AppImage probably doesn't include the style. And it bundles its own version of Qt. Not sure how would system-wide settings work in this scenario. Maybe we should use Fusion style by default...

@guidomz
Copy link

guidomz commented Jun 22, 2024

...Maybe we should use Fusion style by default...

Thanks for simply considering. I'm crossing my fingers....

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

No branches or pull requests

7 participants