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

Plugin not responsive to QGIS Darkmode. #166

Open
BallJonathan opened this issue Nov 22, 2022 · 4 comments
Open

Plugin not responsive to QGIS Darkmode. #166

BallJonathan opened this issue Nov 22, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@BallJonathan
Copy link

Describe the bug
The plugin is not readable when QGIS dark mode is active. Please block dark mode setting from affecting the plugin design.
image

@BallJonathan BallJonathan added the bug Something isn't working label Nov 22, 2022
@nyalldawson
Copy link
Collaborator

@BallJonathan I don't believe it's possible to selectively disable dark theme on just one part of qgjs. Would it be possible to instead get mockups for a dark theme friendly colouring for the design? We could respond gracefully to dark mode then.

@BallJonathan
Copy link
Author

Could we hard-code the styles? I see in the screenshot above, the cards seem to be able to preserve their intended appearance. How is that done?

@nyalldawson
Copy link
Collaborator

Could we hard-code the styles? I see in the screenshot above, the cards seem to be able to preserve their intended appearance. How is that done?

There's two options I can see for solving this:

  1. Remove the part where we respect theme colors in the white cards items, which is causing the white-on-white text, and instead hardcode black for the invisible text elements. That would solve the readability of the cards, but we'd still have issues like the almost-invisible black on dark grey tab and button icons.
  2. Properly respond to dark themes -- this is obviously a "better" solution (since the dock won't be a glaring panel on dark themes!), but is a little more involved. To solve it we'd need:
  • variants on the icons with "light" coloring
  • removal of all hardcoded colors and ensure we always take colors from the application "palette" instead
  • (somehow nicely handle company logos, which might result in black-on-black again! 😱 )

@BallJonathan
Copy link
Author

BallJonathan commented Nov 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants